The use of JSON summary _ basics

Source: Internet
Author: User
Tags json

The purpose of JSON

Use JavaScript based applications, including browser extensions and Web sites

Serialized and structured data transfer network connections using the JSON format

This is primarily used for data transfer between servers and Web applications

Web services and APIs provide common data in JSON format

It can be used with modern programming languages

The characteristics of JSON

Easy to read and write JSON

Lightweight text-based interchange format

Independent language

JSON format Example:

• Name/value pair data representation

• Braces hold objects and each name followed by ":" (colon), name/value pair separation, (comma)

• Brackets hold arrays and values, separated by commas.

{"Book
  ": [
  {
    "id": "Language": "
    Java",
    "edition": "Third",
    "author": "Herbert Schildt "
  },
  {
    " id ":" Modified ",
    " language ":" C + + ",
    " edition ":" Second "
    " author ":" E. Balagurusamy "
  }]
}

Data types supported by JSON: 

Type description

Number in JavaScript double floating-point format
String Double quote Backslash escaped Unicode
Boolean true or False
Ordered sequence of Array values
Value it can be a string, a number, true or False (True/false), null (NULL), etc.
Object unordered collection key value pair
Whitespace can use any of the tokens in a pair
Null empty

The use of the above JSON summary is a small series to share all the content, hope to give you a reference, but also hope that we support the cloud-dwelling community.

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.