JSON data format (translation included)

Source: Internet
Author: User

JSON (JavaScript Object Notation) is a lightweight data interchange format. It is based on a subset of JavaScript (standard ECMA-262 3rd edition-december 1999). JSON takes a completely language-independent text format, but also uses a similar idiom to the C language family (c, C + +, C #, Java, JavaScript, Perl, Python, etc.). These features make JSON an ideal data exchange language. Easy to read and write, but also easy to machine parse and generate.

Five graphs to give you a full understanding of JSON

In JSON, they take on these forms:

In JSON, they take these forms:

An object was an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (right brace). Each name was followed by : (colon) and the Name/value pairs was separated by, (comma) .

The object is a name/value pair of unordered sets. Object to start {(opening parenthesis), and to end} (closing curly brace). Each name is followed by a: (colon) and a name/value pair separated by, (comma).

An array was an ordered collection of values. An array of begins with [ (left bracket) and ends with ] (right bracket). Values is separated by, (comma).

An array is an ordered collection of values. The array begins with [(left square brackets) and ends with] (right parenthesis). (comma) to separate values.

A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested.

A value can be in double quotation marks, or a number, or true or false or null, a string or an object or an array. These structures can be nested.

A string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. A character is represented as a and a single character string. A string is very much like a C or Java string.

The string is 0 or more Unicode characters, wrapped in double quotation marks, with a backslash escape sequence. A character string that is represented as a single character. A string is a string that is much like C or Java.

A number is very much like a C or Java number, except that the octal and hexadecimal formats was not used.

Numbers are much like C or Java numbers, except that they do not use octal and hexadecimal formats


Source: http://www.json.org


JSON Online data parsing

http://json.parser.online.fr

Better use of JSON online parsing

Http://jsonparser.com

JSON data format (with translation)

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.