JSON解析
来源:互联网 发布:淘宝刷单is房间推荐 编辑:程序博客网 时间:2024/05/18 17:04
1.利用NSJSONSerialization类解析
* JSON数据(NSData) --> Foundation-OC对象(NSDictionary、NSArray、NSString、NSNumber)
+ (id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)opt error:(NSError **)error;
2.JSON解析规律
* { } --> NSDictionary @{ }
* [ ] --> NSArray @[ ]
* " " --> NSString @" "
* 10 --> NSNumber @10
JSON格式化:http://tool.oschina.net/codeformat/json
阅读全文
0 0
- 【JSON解析】JSON解析
- 解析JSON
- Json解析
- JSON解析
- JSON解析
- json解析
- Json解析
- Json解析
- JSON解析
- Json解析
- Json解析
- JSON解析
- JSON解析
- json 解析
- Json解析
- JSON解析
- json解析
- json 解析
- AFN
- C语言之--getrlimit()与setrlimit()
- ASI
- ASI和AFN的区别
- [Unity踩坑系列]在Unity4.x里禁用粒子culling(no renderering when off screen)
- JSON解析
- 深入分析ConcurrentHashMap
- XML解析
- HTTP通信过程
- 使用git微命令深入理解git工作机制
- HTTP的请求方法
- IOS数据存储
- 生命周期
- 2017ccpc全国邀请赛(湖南湘潭) H. Highway (最大生成树)(树的直径)