It looks like I didn\'t get the concept of blocks completely yet...
In my code I have to get out the JSON data from the asychronous block to be retur
asychronous block
Check the string when converting data coming from server using below code:
NSLog(@"dataAsString %@", [NSString stringWithUTF8String:[data bytes]]);
if the string is in a proper JSON format, ONLY then your JSON object will be correct.
Hope this hepls!!