In the first week of July, I came back from school to work for the first week. After leaving for a period of time, come back to work again, have a lot of new understanding, no longer is the internship when mixed chaos chaos. Every day I do what I do, how to do, to achieve a clearer degree. In addition to completing the work I am responsible for, I began to think about what I was going to get out of the job.
When I left this morning, I slipped a thin book in my Bag-"JSON must know," and saw the first two chapters during the day, and the two chapters were designed with basic touches, but there was no systematic summary and a lot of clarity after reading.
First, what is JSON, the book is that JSON is a data interchange format that is used by many systems for data exchange.
Data interchange formats are: XML, JSON, and so on.
JSON (JavaScript Object Notation): (JavaScript) object notation. JSON originates from a subset of JavaScript. JSON is based on JavaScript object literals.
Literal: The data is worth a specific representation.
The syntax for JSON:
1, JSON uses (:) to separate the name and value, the name is left and the value is right.
2, the name needs to be enclosed in double quotation marks.
3. When the value is a string, double quotes must be used.
JSON is based on JavaScript object literals, but the JavaScript object literal does not need to enclose the names in the name-value pairs with double quotes, but in JSON it has to be added.
JSON online Syntax validation tool: JSON Formatter & Validator, json Editor online, Jsonlint.
MIME type of JSON: Application/json
JSON must know to learn summary (i)