Data Interchange format is mainly divided into: Plain text format, XML format and JSON format.
One, the XML data Interchange format.
Over the years, it has been used between various computer languages. It is an old-style, classic, flexible way of exchanging data.
1, document structure.
2,xml document parsing and framework performance.
3, Example: Mynotes application XML.
Two, JSON data Interchange format.
JSON is a lightweight format for data interchange. The so-called lightweight is that compared to the structure of the XML document, the description of the project is small, so the number of characters required to describe the same data is less, then the transmitted
The speed will increase and the flow will be reduced.
Because the web and mobile platforms demand as little traffic as possible, the speed requirements are as fast as possible, and the lightweight Data Interchange Format-json becomes the ideal data exchange language.
1, document structure.
2,json data encoding/decoding and frame performance.
3,mynotes apply JSON decoding.
Reference: "iOS network programming and cloud applications-best practices"
"Reading Notes" "ios-Data Interchange Format