[Reading Notes] iOS network-load, Reading Notes ios Load

Source: Internet
Author: User

[Reading Notes] iOS network-load, Reading Notes ios Load

Load refers to the data exchanged in the Request Response transaction of the service. Common load formats include XML, JSON, and HTML.

There are many forms and sizes of incoming and outgoing load data. For example, some developers use native strings or data separated by delimiters to communicate with Web Services. This is simple, but technically it is not scalable. It is difficult to process complicated data structures and may cause many problems.

1. XML

XML is a markup language used to encode and organize data.

2. JSON

JSON is a lightweight data format for exchanging and formatting information.

JSON-supported data types and associated format rules:

1. Number: no double quotation marks.

2. boolean: The value is true or false without double quotation marks.

3. String: Double quotation marks.

4. array: A comma-separated list surrounded by square brackets.

5. Object: a set of key-value pairs surrounded by curly brackets. Objects in Objective-C are represented by NSDictionary.

6, null: no double quotation marks.

3. HTML

HTML is a markup language used to organize data on a webpage, so that the browser can parse the page.

 

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.