[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