title: How to parse JSON in angular 6
body: <p>I have a json like below.</p>
  
  <pre><code> private _ELEMENT_DATA: Account[] = [ 
    {"id":{"name":"abc", "value":"123"}},
    {"id":{"name":"abc", "value":"123"}},
    {"id":{"name":"abc", "value":"123"}}
   ]
  </code></pre>
  
  <p>Please help me how to parse in Angular 6</p>
  
  <pre><code>export class Account{
   name: string;
   value: string;
  }
  </code></pre>
  
  <p>My service class has like this</p>
  
  <pre><code>getAllAccouts(): Observable&lt;any[]&gt; {
  // return this.httpClient.get&lt;Account[]&gt;(this.ELEMENT_DATA);
  return of&lt;Account[]&gt;(this._ELEMENT_DATA);
  }  
  </code></pre>