Number
A series of numbers; decimals ok; double-precision floating-point format.
{ "myNum": 123.456 }A series of numbers; decimals ok; double-precision floating-point format.
String
A series of characters (letters, numbers, or symbols); double-quoted UTF-8 with backslash escaping.
{ "myString": "abcdef" }A series of characters (letters, numbers, or symbols); double-quoted UTF-8 with backslash escaping.
Boolean
True or false.
{ "myBool": true }True or false.
Array
Sequence of comma-separated values (any data type); enclosed in square brackets.
{ "myArray": [ "a", "b", "c", "d" ] }Sequence of comma-separated values (any data type); enclosed in square brackets.
Object
Unordered collection of comma-separated key/value pairs; enclosed in curly braces; properties (keys) are distinct strings.
{ "myObject": { "id": 7 } };Unordered collection of comma-separated key/value pairs; enclosed in curly braces; properties (keys) are distinct strings.
Null
Variable with null (empty) value.
{ "myNull": null }Variable with null (empty) value.
No comments:
Post a Comment