My first time touching JSON and I’m having an issue iterating through the object.
The JSON is formatted as such:
{
"response": {
"2012-01-01": {
"Available": 99,
"Variations": [
{
"ID": 43,
"InternalItemID": "Adult",
"Price": "49.00"
}
]
},
"2012-01-02": {
"Available": 99,
"Variations": [
{
"ID": 43,
"InternalItemID": "Adult",
"Price": "49.00"
}
]
}
}
}
I am able to access the dates, but cannot get any deeper. I need all the values:
$.getJSON(jsonurl, function(data){
$.each(data.response, function(thisDate){
alert(thisDate);
});
});
Can some point me in the right direction please
Working sample http://jsfiddle.net/d84nj/10/