I don’t see what i am doing wrong here but i can’t get the JSON back good in the array..
this is what JSON returns:
(html)
"Response": {
"objecten": {
"object": [
{
"id": "12345
(Xcode)
NSArray *array = [dictionary objectForKey:@"object"];
if (array == nil) {
NSLog(@"No 'data' in array");
return;
}
i get the error because its nil, but if i fill in @”Response” instead of @”object” i get an array back with data.
Then i loop thrue it
for (NSDictionary *resultDict in array) {
NSLog(@"%@",resultDict);
and it has only “objecten” nothing more…
So what am i doing wrong ?
It’s just a tree of objects. Try: