I have a json feed like this:
{
result = {
cars = {
brand = {
fields = {
name = {
id = 1234;
value = "Opel Astra";
};
description = {
id = 4432;
value = "Some description";
};
};
fields = {
name = {
id = 1453;
value = "Opel Omega";
};
description = {
id = 4430;
value = "Some description";
};
...
};
};
};
When I parse this, I get all objects in an array and not as a seperate string which is what I want.
I've done like this:
NSArray *result = [[res objectForKey:@"result"]valueForKeyPath:@"cars.brand.fields.name.value"];
NSLog(@"%@" , [result objectAtIndex:0]):
The output is:
(
"Opel Astra",
"Opel Omega",
....
),
How can I achieve getting one string at a time, instead of an array containing a lot of string?
Thanks!