如何遍历这个 json 对象来获取每个项目的值?我知道这很容易,但我需要不明白为什么这个 json 对象的第一个和结尾有两个括号 ([])。
[// I'm talking about this
[
{
"id": 2,
"title": "xxxxxxxxx",
"author": "mike123",
"postdate": "March 12, 2013 at 6:46 pm",
"postdatecreation": "2013-03-12",
"posteditdate": null,
"postcontent": "eeeeee",
"userID": 34
}
]
]// and this
如果我删除它们,json 仍然有效。