title: Error TS2339: Property 'JSON' does not exist on type 'Object'. ".map(resp => resp.JSON())" angular 4
body: <p>In my file contacts.service.ts. I have my own code </p>
  
  <pre><code>import {Injectable} from '@angular/core';
  import {HttpClient} from "@angular/common/http";
  
  @Injectable
  
  export class contactsService{
  
  constructor(public http: HttpClient){
  
  }
  
  getContact(){
       return this.http.get('http://localhost:8080/chercherContacts? 
    mc=sa&amp;page=2&amp;size=6')
       .map(resp =&gt; resp.JSON());
  
  
   }
  </code></pre>
  
  <p>}</p>
  
  <p>I have a problem in the function <strong>getContact()</strong> because <strong>HttpClient</strong> does not want map and i receive the message and I get the message: <strong>Property 'JSON' does not exist on type 'Object'</strong></p>
  
  <p>How can to modify this code when i forget the <strong>.map</strong> in this function  </p>
  
  <p>Give me the advice when i can to correct this code in my project and think of all.</p>