如何访问名称中带有冒号的 JSON 对象键

sT0*_*0n3 -2 javascript json

我需要一些关于如何使用 Javascript 访问 JSON 对象的密钥的指导:"yweather:forecast"。我尝试过json.yweather:forecast,但它抛出一个错误。

{
    "yweather:forecast" : [
        {
            "@day":"Wed",
            "@date":"10 Jul 2013",
            "@low":"75"      
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

Ren*_*řík 5

在 JavaScript 中:

jsonobject["yweather:forecast"]