JSON message details
A JSON message consists of name-value pairs (objects), and ordered collections of values (arrays). Objects, arrays, or both structures can be nested.
For more detailed information about JSON, see the JavaScript Object Notation (JSON) web site.
JSON object
In a JSON message, an object is an unordered set of comma-separated name-value pairs that begins with a left brace ({) and ends with a right brace (}). Each name is followed by a colon (:).
JSON array
A JSON array is an ordered collection of comma-separated values that begins with left bracket ([) and ends with right bracket (]).
JSON value
- A string in double quotation marks
- A number
- Boolean
- Null
- An object
- An array
JSON string
A JSON string is very much like a C or Java™ string. A string is a collection of zero or more Unicode characters, wrapped in double quotation marks, using backslash escapes. A character is represented as a single character string.
JSON number
A JSON number is the same as a C or Java number, except that the octal and hexadecimal formats are not used.
Whitespace can be inserted between any pair of tokens.