If I have a json string as below, what's the best way to get the first iteration of the name (bob) in objective-c?
{
"users": [
{"id": "1", "name": "bob"},
{"id": "2", "name": "john"},
{"id": "3", "name": "joe"}
]
}
BTW, I'm currently using JSONKit to parse the json string. For example, NSDictionary *users = [jsonString objectFromJSONString];
[]?NSJSONSerializationwhich has existed since iOS 5. One less dependency.