【发布时间】:2012-07-04 10:27:34
【问题描述】:
我在 NSString 中有 JSon 值。我正在尝试解析来自 NSString JSonValue 的值。
NSString 值如:
result = [{"no":"01","send":"2010-05-03 01:26:48","from":"0000000000","to":"1111111111","text":"abcd"}]
我已经尝试使用下面的代码来解析值 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);
谁能帮忙解析来自 NSString 的 JSon 值?提前致谢。
【问题讨论】:
-
所以你搜索了stackoverflow并没有找到任何关于如何在iOS上解析JSON的问题?很奇怪……
标签: iphone ios json parsing nsstring