JSON 示例:
注意:“Docs”数组是这个大数组中许多不同的数组之一。
{
"Docs": {
"Title1": {
"id": "1",
"active": "0",
"title": "xxx",
"date": "October 22, 2012",
"description": "Description here",
"ext": "DOCX",
"when": "Tuesday, October 23",
"subject": "French",
"author": "xx xD",
"email": "xx.xx@gmail.com",
"day": "Tuesday, October 23",
"dl": "9 downloads"
},
"Title2": {
"id": "2",
"active": "0",
"title": "Vocab, Page 64",
"date": "October 22, 2012",
"description": "Description goes here",
"ext": "XLSX",
"when": "Tuesday October23",
"subject": "French",
"author": "xxxxxx",
"email": "xxx@yahoo.com",
"day": "Tuesday October23",
"dl": "3 downloads"
}
}
例如,如何制作一个 NSDictionary 来获取“Docs”数组(Docs)的标题并获取 docs 数组中的数组数量?谢谢。我对如何做到这一点感到非常困惑。