[{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
}
「//私はここで立ち往生しています」で何をしますか?