Want to extract value from the NSMutableArray
After services call I got response which is stored in NSMutableArray
`arrayList` = responseData
The response data is an JSON string
Below is response data structure:
{
firstSet = (
);
secondSet = {
id = 12;
name = rohan;
};
"status_code" = 200;
success = 1;
}
I want to extract name
field and id
from the arrayList
.
This is what I tried, not working me.
[[[arrayList objectAtIndex:0] objectForKey:@"secondSet"] objectForKey:@"name"]];
Error Message -[__NSDictionaryM objectAtIndex:]: unrecognized selector sent to instance 0x7c6763e0