I have a NSString which looks like this
{
ISOcountryCode = US;
administrativeArea = Texas;
coordinate = "11.761241, -99.496531";
country = "United States";
formattedAddress = "45,North Virinia,VA, USA";
}
I tried the following code segment. But getting 'NSInvalidArgumentException' error. Not sure. what's wrong. It's a JSON output. Here 'result' is my string which contains the above info.
NSArray *array = [result componentsSeparatedByString:@"\n"];
NSLog(@"%@",[array objectAtIndex:0]);
Any info on how to parse this string so I can get info like country, coordinate etc ?