我该如何解析JSON? [英] How can I parse JSON?
本文介绍了我该如何解析JSON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Rohit,我是一位新手iphone开发者。
我想使用JSON。那么请告诉我我可以使用哪种类型的代码?
请给我发个演示?
谢谢!
I am Rohit, I am a fresher iphone developer.
I want to use JSON. So please tell me which type of code I can use?
Please send me a demo?
Thanks!
推荐答案
First你应该学习的东西是基础研究。
1.问:iThingies的编程是什么?
1. A:Objective-C
2.问:你想再次使用它是什么?
2. A:JSON
Google查询因此:Objective-C JSON
结果:
< a href =http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html> NSJSONSerialization Class Reference
[ ^ ]
页面摘录:
您使用NSJSONSerialization类将JSON转换为Foundation对象并将Foundation对象转换为JS ON。可以转换为JSON的对象必须具有以下属性:
哇!现在这很容易,不是吗?
问候,
- Manfred
First thing you should learn is basic research.
1. Q: iThingies are programmed in what?
1. A: Objective-C
2. Q: What is it again you wanted to use?
2. A: JSON
Google query therefore: Objective-C JSON
Result:
NSJSONSerialization Class Reference
[^]
Page Excerpt:
"You use the NSJSONSerialization class to convert JSON to Foundation objects and convert Foundation objects to JSON. An object that may be converted to JSON must have the following properties:"
Wow! That was easy now, wasn''t it?
Regards,
— Manfred
这篇关于我该如何解析JSON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文