我想分析中的iOS 5與AFNetworking框架服務器接收到的JSON數據:解析JSON在iOS 5中與AFNetworking
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
} failure:nil];
JSON數據我想分析這樣的容貌:
[ {
addressReal = "\U6912\U6c5f\U89e3\U653e\U5357\U8def295\U53f7";
areaTotal = 774;
balance = 0;
businessIncome = "556.49";
equNoString = "";
equStatusSting = "";
id = 208;
staff = 10;
},
{
addressReal = "\U53f0\U5dde\U5e02\U5e9c\U5927\U9053668\U53f7";
areaTotal = 156;
balance = 6463;
businessIncome = "174.93";
equStatusSting = "";
id = 209;
staff = 8;
}]
如何我現在可以訪問JSON?
我試圖清理你的問題,使之能回答的,但我建議您嘗試,以確保未來的問題,你總是清楚說明什麼問題是你需要幫助。另請參見[如何提問智能路(http://catb.org/esr/faqs/smart-questions.html)(特別是:*準確和翔實的關於您的問題*) – unthought 2013-02-27 09:25:32