{ "sequence": 52634,
"employees" : [
{ "first": "Anna", "last:": "Smith", "loc": 1},
{ "first": "John", "last:": "Doe", "loc" : 1 },
{ "first": "Sandra", "last:": "Jones", "loc" : 2}
],
"locations" : [
{ "city" : "New York", "type" : "HQ", key: 1 },
{ "city" : "Los Angeles", "type" : "Branch", key: 2 }
]
}
|
"string"
|
see "Strings" box for details
|
|
1234
|
integer number
|
|
1234.5678
|
floating point number
|
|
1.234e-3
|
floating point with exponent(1)
|
|
true
|
boolean "True"
|
|
false
|
boolean "False"
|
|
null
|
denoting "empy"
|
|
object
|
a value can be an object
|
|
array
|
a value can be an array of values
|
|
{ }
|
empty object
|
|
{ "key" : value }
|
single value object
|
|
{ "key1" : value , "key2": value, ... }
|
multiple value object
|
|
[ ]
|
empty array
|
|
[ value ]
|
single element array
|
|
[ value , value , ... ]
|
multiple value array
|
|
""
|
empty string
|
|
"some string characters"
|
string(1)
|
|
non-special characters
|
Any unicode character except " (quotes), \ (backslash) or any control character
|
|
\"
|
double quotes
|
|
\\
|
backslash
|
|
\/
|
slash
|
|
\b
|
backspace
|
|
\f
|
formfeed
|
|
\n
|
newlinw
|
|
\r
|
carriage return
|
|
\t
|
horizontal tab
|
|
\uXXXX
|
where XXXX is the 4 digit hexadecimal unicode code for the character
|
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.