I have the following json:
http://www.adityaherlambang.me/webservice.php?user=2&num=10&format=json
I would like to get all the name in this data by the f
It seems to me that when you create the "users" dictionary you are actually creating a "user" dictionary.
NSDictionary *users = [[results objectForKey:@"users"] objectForKey:@"user"];//crating users dictionary with 1 "user" inside.
EDIT
in second view. why don't you just iterate the "result" dictionary? like that -
for (NSDictionary *user in result){
//NSLog(@"key:%@, value:%@", user, [user objectForKey:user]);
NSString *title = [users objectForKey:@"NAME"];
NSLog(@"%@", title);
}
hope it will help shani