【发布时间】:2018-02-01 23:32:06
【问题描述】:
我有一个 json 对象,其中包含对象数组的数组。 我需要使用 JSONModel 解析它。
例如json:
{
"object": [
[
{
"a": 1,
"b": 2
},
{
"c": 1,
"d": 4
}
],
[
{
"a": 3,
"b": 6
},
{
"e": 2,
"f": 3
}
]
]
}
我应该如何在我的 JSONModel 中声明它? 像这样声明是给我作为 NSDictionary 的 NSArray。
@interface SomeClass : JSONModel
@property (nonatomic, retain) NSArray<NSArray<AphabetJsonModelClass> *> *object;
@end
【问题讨论】:
标签: objective-c arrays json parsing jsonmodel