Is there a class to parse JSON from a server in the iOS SDK? (similar to NSXML for XML and by extension RSS.)
相关问题
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Correctly parse PDF paragraphs with Python
- Do the Java Integer and Double objects have unnece
相关文章
- 现在使用swift开发ios应用好还是swift?
- json_encode 没有把数组转为json
- Livy Server: return a dataframe as JSON?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Unexpected end of JSON input from an ajax call
- Where does a host app handle NSExtensionContext#co
Updated answer for iOS 5:
JSON support is now native to iOS with
NSJSONSerialization
, but in terms of performance, it pales in comparison toJSONKit
, as John Englehart stated in theJSONKit
README:Here's a blog post which delves into more specific benchmarks: JSON Libraries for iOS Comparison
As of iOS5 JSON is been natively supported, no need for 3rd party frameworks. This is supported by the NSJSONSerialization Class!
NextiveJson is supposed to be quite a fast lib for iOS JSON NextiveJson
There are several JSON libraries for the iPhone listed in this thread: https://stackoverflow.com/questions/286087/best-json-library-to-use-when-developing-an-iphone-application
Regarding
JSONKit
benchmarks, for the current moment and iOS version it's not so fast. After creating test application for testing speedNSJSONSerialization
is faster but not so fast as custom implementation OKJSONParser