title: Using json2typescript - ignores the custom names for child classes
body: <p>I am using <a href="https://github.com/dhlab-basel/json2typescript" rel="nofollow noreferrer">https://github.com/dhlab-basel/json2typescript</a>  to deserialize this rather 'criptic' json response into Typescripts classes</p>
  
  <pre><code>{
      "xp": 0,
      "xt": 34000,
      "dl": 
      [
          {
              "p05": 2000.0000000000002  
          },
          {
              "p05": 400.0000000000002
          }
      ],
  }
  </code></pre>
  
  <p>I said criptic because we need to translate this variables into something more 'human'
  (Example, p05 is Price whitout Taxes, or pWoTaxes for better understanding of the code)
  I am using two classes and following along the json2typescript converter example:</p>
  
  <p>Parent:</p>
  
  <pre><code>@JsonObject
  export class TheParentClass{
    @JsonProperty("xp", Number) priceX: number= undefined;
    @JsonProperty("xt", Number) externalThing: number= undefined;
  
    // As shown with the Cities example
    //  @JsonProperty("cities", [City]) cities: City[] = undefined;
    @JsonProperty("dl", [TheChildClass]) lineDetail: TheChildClass[] = undefined;
  
  }
  </code></pre>
  
  <p>And the ChildClass:</p>
  
  <pre><code>@JsonObject
  export class TheChildClass{
    @JsonProperty("p05", Number) someBetterNameForThis: number= undefined;
  }
  </code></pre>
  
  <p>Because dl is actually an array of objects</p>
  
  <p>When I run this code with the json response provided, I get this error:</p>
  
  <pre><code>Error: Fatal error in JsonConvert. Failed to map the JSON object to the JavaScript class "Order" because of a type error.
  
  Class property: 
      lineDetail
  
  Expected type: 
      [TheChildClass]
  
  JSON property: 
      dl
  
  JSON type: 
      [object]
  </code></pre>
  
  <p>So I changed my definition to:</p>
  
  <pre><code>@JsonProperty("dl", [Object]) lineDetail: TheChildClass[] = undefined;
  </code></pre>
  
  <p>And it worked. But then the TheParentClass looses all custom named properties for TheChildClass, rendering all my component code useless.</p>
  
  <ul>
  <li>TheParentClass.lineDetail[0].someBetterNameForThis returns undefined</li>
  <li>TheParentClass.lineDetail[0].p05 still returns the correct value</li>
  </ul>
  
  <p>At this moment it tought TheChildClass maybe wasn't being reached by the parent because the change i did when I tried to get it as [Object] from the json, so I put some faulty code on TheChildClass just to see what happens...
  Surprise, when trying to deserialize the Parent, the error was raised, so TheChildClass was being correctly processed, but it totally ignores the names i am defining for the p05 variable. This is not happening fir the custom names I've created for the actual Parent class names.</p>
  
  <p>Why wouldn't then get the new name I created for the p05 variable?</p>