I have the following JSON Data:
{
"city": {
"city_code":"DE0001516",
"post":"28195",
"forecast": {
"2012-09-10": {
"p":"24",
"w":"10",
"06:00": {
"p":"5",
"w":"20",
"tn":"15",
"tx":"21",
"w_txt":"wolkig"
}
}
}
}
}
Normally I read the data through this function:
function(data){ $("#").html(data.city.post); }
How do I get the data from 06:00?
function(data){ $("#").html( data.city.forecast.2012-09-10.06:00.w); }
doesn’t work. I think this has something to do with time and date format.