I need some guidance on how to access this key of a JSON object using Javascript: "yweather:forecast"
. I tried json.yweather:forecast
but it throws an error.
JavaScript
x
10
10
1
{
2
"yweather:forecast" : [
3
{
4
"@day":"Wed",
5
"@date":"10 Jul 2013",
6
"@low":"75"
7
}
8
]
9
}
10
Advertisement
Answer
In JavaScript:
jsonobject["yweather:forecast"]