Having trouble retrieving JSON data from this API: I'm unsure how to access the returned finance_charts_json_callback().
Currently, I am utilizing Angular 2's http.get():
loadData() {
return this.http
.get(this.url)
.map((res) => res.json())
.subscribe((data) => console.log(data));
}
However, an error is triggered at => res.json()
, displaying:
EXCEPTION: SyntaxError: Unexpected token i