JSON study notes (an acquaintance)

Background isolated in the previous project, the rear end of pure Http write interfaces, and the received data are returned json.

What Json that?

Json: JavaScript Object Notation (JavaScript Object Notation)
JSON syntax is storing and exchanging text messages. Similar to XML.
JSON is smaller than XML, faster, and easier to resolve.

Jsons range

. For writing JavaScript-based applications, including browser extensions and websites.
.JSON linker sequence may be used to format and transmit data through the network structure.
It is mainly used to transmit data between server and Web applications.
.Web services and APIs can be used to provide a common data format JSON.
It can also be used in modern programming languages, such as php, java, .net like.

JSON Features

.JSON easy to read and to write.
It is a lightweight text-based interchange format.
. Independent of language.

JSON examples

{
    "book": [
        {
            "id":"01",
            "language": "Java",
            "edition": "third",
            "author": "Herbert Schildt"
        },
        {
            "id":"07",
            "language": "C++",
            "edition": "second",
            "author": "E.Balagurusamy"
    }]
}

This example was saved information using JSON to save books.

参考:
【1】、https://www.w3cschool.cn/json/json-intro.html
【2】、http://how2j.cn/k/json/json-tutorial/531.html
【3】、https://www.runoob.com/json/json-tutorial.html

Guess you like

Origin blog.csdn.net/sinat_40770656/article/details/94735421