I have JSon Values in NSString. I am trying to parse the values from the NSString JSonValue.
NSString Values like:
result = [{"no":"01","send":"2010-05-03 01:26:48","from":"0000000000","to":"1111111111","text":"abcd"}]
I have tried the below code to parse the values no, send, from, to, text.
NSString *jsonString = result;
NSDictionary *jsonArray = [jsonString jsonValue]; //Am trying to save the values from NSString to NSDictionary the app getting crash here.
NSLog(@"JsonDic : %@", jsonArray);
Can anyone please help to parse the JSon values from NSString? Thanks in advance.
Gopinath. I have mentioned code please try this one. I have tested i can get the no.
Please test and let me know if you face any problem. Thanks.