I’m working with json file and I have saved my response in a NSArray.
NSArray *result = [response JSONValue];
NSLog(@"value = %@", result);
When I print my array, in console I obtain this:
(
{
user = {
"created_at" = "2011-06-07T16:20:16Z";
id = 1;
name = "john";
"updated_at" = "2011-06-07T16:20:16Z";
};
},
{
user = {
"created_at" = "2011-06-08T00:03:54Z";
id = 25;
name = "david";
"updated_at" = "2011-06-08T00:03:54Z";
};
}
)
My question is this – how can access to the value “name” and save the value (john,david) in an another array?
Using Key-Value Coding: