Hello all,
I have another JSON array related question.
How would I access the data stored under "when": in this array if I am importing it with JQuery with a statement like this:
function getJSON() {
$.getJSON('nearby.json',
function(data) {
console.log(data.when);
});
}
Here is a snippet from my JSON:
[
[
"Soon",
[
{
"body": "",
"updated": "2010-06-25T09:53:50.868000",
"distance": 27.679736723643234,
"when": "lunchtime",
"item_types": [
5
],
"ccnt": 12,
"loc": {
"lat": 37.774929499999999,
"lon": -122.4194155
}
}
]
]
]