-2
陣列
可能重複:
Best JSON library to use when developing an iPhone application?轉換一個NSDictionary對象到對象
我有以下在JSON結構,而我發送請求:
[
{
"uid": "20",
"count": "4"
},
{
"uid": "48",
"count": "0"
},
{
"uid": "49",
"count": "0"
},
{
"uid": "53",
"count": "0"
}
]
And I want to get the following structure :
[
{
"uid": "53",
"count": "0"
}
]
Using sender.tag I am able to get the following structure in the NSDictionary *json object, something like the following:
{
"uid": "53",
"count": "0"
}
我也想要方括號(對象數組)。 請告訴我如何將此NSDictionary對象轉換爲對象數組。
檢查。有很多重複的問題可以在SO – akk
中找到。他沒有使用JSON。他只是將'NSDictionary'顯示爲JSON。這是一個很大的區別。 –