title: Angular 2 Http – How to Get JSON Data from API with finance_charts_json_callback() callback
body: <p>I'm trying to get json data from this api: <a href="http://chartapi.finance.yahoo.com/instrument/1.0/NFLX/chartdata;type=quote;range=1d/json" rel="nofollow">http://chartapi.finance.yahoo.com/instrument/1.0/NFLX/chartdata;type=quote;range=1d/json</a>
  And I don't know how to get into the returned finance_charts_json_callback().</p>
  
  <p>I'm using Angular 2's http.get():</p>
  
  <pre><code>loadData() {
    return this.http
       .get(this.url)
       .map((res) =&gt; res.json())
       .subscribe((data) =&gt; console.log(data));
  }
  </code></pre>
  
  <p>When it gets to <code>=&gt; res.json()</code>, it throws this error: </p>
  
  <blockquote>
    <p>EXCEPTION: SyntaxError: Unexpected token i</p>
  </blockquote>