title: How to Observable map collection of json objects with different property names
body: <p>I have an json result which is a collection of objects. I need to cast them to a collection of custom objects which have different property names than the json result. Also not all result properties are needed in this instance.</p>
  
  <p><strong>JSON</strong></p>
  
  <pre><code>[{"empID":"12345", "formattedName":"Simpson, Homer"},
   {"empID":"24680", "formattedName":"Simpson, Marge"},
   {"empID":"36912", "formattedName":"Simpson, Bart"},
   {"empID":"13579", "formattedName":"Simpson, Lisa"},
   {"empID":"13579", "formattedName":"Simpson, Lisa"}]
  </code></pre>
  
  <p><strong>My Custom Ojbect</strong></p>
  
  <pre><code>export class multiSelect {
     constructor(
      public id: string,
      public name: string
    ) {  }
  }
  </code></pre>
  
  <p><strong>Service</strong></p>
  
  <pre><code>  reportsTo(): Observable&lt;multiSelect&gt; {
      return this._http.get('getCollection')
        .map((response: Response) =&gt; response.json())
        .map(({empID, formattedName}) =&gt; new multiSelect(empID, formattedName))
        .catch(this.handleError);
    }
  </code></pre>
  
  <p>I would like for my service to return this</p>
  
  <pre><code>[{"id":"12345", "name":"Simpson, Homer"},
   {"id":"24680", "name":"Simpson, Marge"},
   {"id":"36912", "name":"Simpson, Bart"},
   {"id":"13579", "name":"Simpson, Lisa"},
   {"id":"13579", "name":"Simpson, Lisa"}]
  </code></pre>
  
  <p>Any help would be appreciated. Thanks.</p>