JSON parsing using NSJSONSerialization in iOS
I am parsing a JSON in my code. But I am getting some unexpected issues while retrieving data of parsed JSON . So let me explain my problem. I have to parse following JSON data using xcode. This is what data to be parsed looks like while I hit same URL in browser: { "RESPONSE":[ {"id":"20", "username":"john", "email":"abc@gmail.com", "phone":"1234567890", "location":"31.000,71.000"}], "STATUS":"OK", "MESSAGE":"Here will be message" } My code to reach up to this JSON data is as follow: NSData *data = [NSData dataWithContentsOfURL:finalurl]; NSError *error; NSDictionary *json =