我有對象的JSON數組具有下列布置:對象的解析JSON陣列中目標C
[{
"user_privacy": "Private",
"latitude": "53.34885596487662",
"longitude": "-6.255970895290375",
"address": "",
"quick_ezpoint": false,
"tags": "test",
"owner": true,
"value": "TQJ539"
},{
"user_privacy": "Private",
"latitude": "53.34885596487662",
"longitude": "-6.255970895290375",
"address": "",
"quick_ezpoint": false,
"tags": "test",
"owner": true,
"value": "TQJ539"
}]
我嘗試這樣的代碼,但其不工作:
NSArray *ezpoints = [JSON valueListAttributes];
for (NSArray *ezpoint in ezpoints) {
NSLog(@"%@",[ezpoint description]);
}
每天至少有幾個這樣的問題。來吧,人們,請求之前做一些基本的調試/谷歌/ Stackoverflow搜索! – dandan78
[iPhone/iOS JSON解析教程]的可能重複(http://stackoverflow.com/questions/5813077/iphone-ios-json-parsing-tutorial) –
@ user1774937:我不能。你不知道如何從網址獲取JSON?或者你解析你的JSON值?請告訴 – TamilKing