I am fairly new to iOS development and I have been trying to figure out how I can convert the following string into an array and then displaying that array in a UITableView
{"Result":"OK","Users":[{"name":"The King","email":"[email protected]"},{"name":"The Resteruant","email":"[email protected]"}]}
What I want to get is an array for the "name" and a separate array for "email"
This is what i have so far:
strURL = [NSString stringWithFormat:@"http://10.139.10.43/Wolfeboro_Connection/get_business.php"];
dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString:strURL]];
strResult = [[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding];
NSLog(@"%@", strResult);
I have installed a JSON library but I dont know how to use it and how I can get the arrays. Please help with examples.
EDIT: Found a great tutorial that helped me with this problem