现在开发iphone应用,使用JSON框架解析从web服务获取的JSon值,怎么得到像1221, 1278,3456等等这样的值?这些值不连续,会动态改变。
谢谢
json响应,供您参考。
{
"1221":
{
"type": "product",
"product_id": 1221,
"intID": "1",
"name": "rer Margherita",
"des": "Tomatensauce, Käse<sup>1</sup>",
"img": "",
"isDeal": false,
"cat": {
"1": {
"price": 4,
"pos": 1,
"catname": "normal",
"extras": false
},
"2": {
"price": 5.9,
"pos": 2,
"catname": "groß",
"extras": false
}
}
},
"1278": {
"type": "product",
"product_id": 1222,
"intID": "2",
"name": "ere Zwirerebeln",
"des": "er",
"img": "",
"isDeal": false,
"cat": {
"1": {
"price": 2,
"pos": 1,
"catname": "rer",
"extras": true
},
"2": {
"price": 6.2,
"pos": 2,
"catname": "mega",
"extras": true
}
}
}
KitJson第三方的开发包