我該如何解析?我正在使用WordPress和Jquery。用Jquery解析JSON
{
"MyCustomOutput": [
{
"id": "2",
"name": "This is the name of the custom output",
"version": "1.00",
"description": "This is the Description",
"changelog": "This is the change log history....",
"updated": "1261274072"
}
]
}
我想是這樣的:
var d = JSON.parse(data);
$("#version").html(data);
$("#version").html(d.MyCustomOutput.version);
但我不知道我在用jQuery做...或JavaScript:P