[Reading Notes] iOS network-resolution response load, Reading Notes ios

Source: Internet
Author: User

[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.