如何[{first set of values},{data->children->data->body}
在目标 c 中循环这部分 json?
json是
[
{
"kind": "Listing"
},
{
"kind": "Listing",
"data": {
"children": [
{
"data": {
"body": "body1"
}
},
{
"data": {
"body": "body2"
}
}
]
}
}
]
我目前的代码是
m_ArrList=[[NSMutableArray alloc]init];
NSDictionary *infomation = [self dictionaryWithContentsOfJSONString:@"surveyquestion.json"];
NSArray *array=[infomation objectForKey:@"data"];
int ndx;
NSLog(@"%@",array);
for (ndx = 0; ndx < [array count]; ndx++) {
NSDictionary *stream = (NSDictionary *)[array objectAtIndex:ndx];
NSArray *string=[stream valueForKey:@"children"];
//i am stuck here
}
在“//我被困在这里”时我该怎么办?