【发布时间】:2013-11-27 09:34:50
【问题描述】:
我正在尝试创建看起来像的 JSON
[
{
property1 = "test1",
property2 = "test2",
},
{
property1 = "test1",
property2 = "test2",
},
...
]
到目前为止,我使用 NSDictionary 所能得到的只是:
[
key1 = {
property1 = "test1",
property2 = "test2",
},
key 2 = {
property1 = "test1",
property2 = "test2",
},
...
]
... 这不好。有没有简单的方法在 NSDictionary 中创建无键数组?
【问题讨论】:
-
那是什么类型的?您使用的是什么 JSON 编码器?你能告诉我们你从 JSON 中得到什么的反序列化代码 + NSLog 类型吗
-
告诉我你创建这个 JSON 的代码
-
“无钥匙字典”只不过是
NSSet...没有意义
标签: ios objective-c json cocoa nsdictionary