JSON
JSON is a language-independent data interchange format designed by Douglas Crockford at State Software.
Types
- Boolean
true
andfalse
. - Number makes no distinction between integer and floating point values, and supports exponential E notation. NaN is disallowed.
- String values are sequences of unicode characters, denoted in double double quotes. They support backslash escape sequences.
- Array
- Object represents a set of values with string keys.
null
for the absence of a value.
Syntax
{
"id": 1,
"name": "Luke",
"interests": ["jank"]
}
- Trailing commas are expressly forbidden.
- There's no comment syntax,
Derivatives
- jsonc adds block and line comments, and adds a new array syntax
[a b c]
which expands to["a", "b", "c"]
.
Backlinks