-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。这是一个很大的区别。 –