title: Header in get. Angular 6
body: <p>I'm doing an example that I've taken from this same web, but I do not know what I'm doing wrong that gives me an error, and even though I look at it I do not see what I'm doing wrong.   </p>
  
  <p>When doing "response => response.json()" I get the following error:</p>
  
  <blockquote>
    <p>The <code>json</code> property does not exist in the <code>Object</code> type</p>
  </blockquote>
  
  <p>My service is as follows:</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { HttpHeaders,HttpClient  } from '@angular/common/http';
  import { Observable } from 'rxjs';
  import { map } from 'rxjs/operators';
  
  @Injectable({
    providedIn: 'root'
  })
  export class CompetenceService {
  
    public url: string;
  
    constructor(private httpCliente: HttpClient) {}
  
    public createUser(): Observable &lt; any &gt; {
      const getHeaders: HttpHeaders = new HttpHeaders({
        'Content-Type': 'application/json'
      });
      return this.httpCliente
        .get('http://xxx/xxx/xxx', {
          headers: getHeaders
        }).pipe(
          map(
            response =&gt; response.json() &lt; --error: The 'json'
            property does not exist in the 'Object'
            type
          )
        );
    }
  }
  </code></pre>
  
  <p>Someone sees that I am doing wrong.</p>