I have extracted JSON content from this web site
Have created some code in Google Script Editor...
var urlresponse = UrlFetchApp.fetch(url).getContentText().substring(3);
var jsondata = JSON.stringify(urlresponse);
var jsonparseddata = JSON.parse(jsondata);
I can print the jsonparseddata
to the logs as below.
But cannot seem to get a value or even attempt to iterate.
Have spent hours trying various online examples, need help. Thanks
When using jsonparseddata[0].id the logs return 'undefined'
[{
"id": "22144",
"t": "AAPL",
"e": "NASDAQ",
"l": "90.52",
"l_fix": "90.52",
"l_cur": "90.52",
"s": "0",
"ltt": "4:00PM EDT",
"lt": "May 13, 4:00PM EDT",
"lt_dts": "2016-05-13T16:00:02Z",
"c": "+0.18",
"c_fix": "0.18",
"cp": "0.20",
"cp_fix": "0.20",
"ccol": "chg",
"pcls_fix": "90.34"
}]