title: Angular 4 api call turning response to json returns undefined
body: <p>I am following an example and they're making the call to a local web api like so.</p>
  
  <pre><code>return this.http.get("http://localhost:26264/api/news").map((response: Response)=&gt;{
    response.json();
  });
  </code></pre>
  
  <p>If you watch the value of response before the <code>.json()</code> call everything looks fine. </p>
  
  <p>I am then doing this,</p>
  
  <pre><code>var data = this.authService.Login(value.Email, value.Password).subscribe((res: any)=&gt;{
      console.log(res);
    });
  </code></pre>
  
  <p>At this point the value of res is undefined? Ignore the fact that I am calling a login method for a news controller api. I changed my api endpoint because I was getting other errors prior to this. </p>