[Reading Notes] iOS network-resolution response load, Reading Notes ios
Web Service can return structured data in multiple formats, but XML and JSON are used most of the time. The application can also only receive data in the HTML structure. Applications that implement these Web services or receive HTML documents must be able to interpret such structured data and convert it into objects that are meaningful to the application context.
1. XML
Another consideration for using native DNS libraries is that they are released and supported by Apple. This means that they will perform full tests for every release of the iOS operating system in the future to ensure backward compatibility. These are all factors to consider when evaluating which parser should be used in an application.
2. JSON
Starting from iOS5, Apple provides native JSON parsing support through the NSJSONSerialization class. Before the native support of iOS5, a third-party library is required for parsing JSON data, such as JSON framework or JSON-Kit. although these libraries are well supported and easy to use, Apple's support for native APIS is also very popular.
Reference: iOS network advanced programming-enterprise application development for iPhone and iPad