title: Angular HttpClient - how to convert from Http: JSON.parse(JSON.stringify(data))._body)?
body: <p>Using the Http module, this construction is used: </p>
  
  <p>Http service: </p>
  
  <pre><code>let tokenUrl1 = this.apiUrl + 'login';
  let headers1 = new Headers({'Content-Type': 'application/json'});
  return this.http.post(tokenUrl1, JSON.stringify(model), {headers: headers1});
  </code></pre>
  
  <p>Call of the service: </p>
  
  <pre><code>this.loginService.sendCredential(this.model).subscribe(
    data =&gt; {
      // Next statement ... how to convert this for use in an HttpClint environment??
      localStorage.setItem("token", JSON.parse(JSON.stringify(data))._body);
  </code></pre>
  
  <p>The nice HttpClient module parses the http content body with JSON returning an object. Nice! </p>
  
  <p>How can the marked statement, "<strong>JSON.parse(JSON.stringify(data))._body)</strong>" be rewritten to fit nicely in the HttpClient environment? </p>