complex name of field of class in typescript
<p>I have a class in typescript like this - </p>

<pre><code>export class News {
    title: string;
    snapshot: string;
    headerImage: string;
}
</code></pre>

<p>Now In my angular service i have a method which get list of news like this - </p>

<pre><code>private searchNews(sortOrder : string, query? : string):Observable&lt;News[]&gt;{
        return this.http.get(this.url+'?'+this.buildParams(sortOrder,10,0,query))
                         .map((res:Response) =&gt; res.json())
                         .catch((error:any) =&gt; Observable.throw(error.json().error || 'Server error'))
    }
</code></pre>

<p>here is the json data i am getting from server - </p>

<pre><code>[{
  "jcr:path":"someurl",
  "title":"Hello News",
  "snapshot":"Here is a snapshot",
  "headerImage":"image.png"
},
 ...
]
</code></pre>

<p>Now i want to add a field <strong>"path"</strong> in my news class which maps value of field <strong>"jcr:path"</strong> of json data.</p>

<p>But i can't write class like this - </p>

<pre><code>export class News {
    jcr:path:string;// I may write it as - path:string
    title: string;
    snapshot: string;
    headerImage: string;
}
</code></pre>

<p>So is there way i can tell typescript to extract value of <strong>"path"</strong> field from <strong>"jcr:path"</strong> properties</p>