title: Angular 4 - Typescript: json2typescript json key mapper
body: <p>Sorry but I didn't explain it very well. I edit my question again:</p>
  
  <p>I have an angular 4 application and I use json2typescript to convert from json to object and vice versa but I have a problem because I have a class structure and the response json from an external api has another structure. Example:</p>
  
  <pre><code>Customer {
    @JsonProperty('idCardNumber', String)
    idCardNumber: string = undefined;
    @JsonProperty('rolInfo.name',String) 
    name: string = undefined;
    @JsonProperty('rolInfo.surname',String) 
    surname: string = undefined;  
  }
  </code></pre>
  
  <p>External Json API Reponse:</p>
  
  <pre><code> {
     "idCardNumber": "08989765F",
     "rolInfo": {
        "name": "John"
        "surname: "Smith"
     }
   }
  </code></pre>
  
  <p>So, I would like to map from the json above to my Customer object and not to change my structure. I tried to put 'rolInfo.name' into the JsonProperty, but that doesn't work.</p>