JSON — JavaScript Object Notation

Reference & Beautifier

{
  "name":        "Ada Lovelace",     // string
  "age":         36,                // number
  "active":      true,              // boolean
  "nickname":    null,              // null
  "scores":      [98, 100, 87],     // array
  "address":     {                  // object
    "city":      "London",
    "postcode":  "W1A 1AA"
  }
}
"key" — object key "string" — text 42 — number true/false — boolean null — nothing { } [ ] — structure
"string"
"hello world"
Any text, always wrapped in double quotes.
number
42 · -7 · 3.14
Integer or decimal. No quotes needed.
boolean
true · false
A yes/no flag. Always lowercase.
null
null
Represents the intentional absence of a value.
[array]
[1, "two", true]
An ordered list of any JSON values.
{object}
{"key": value}
A collection of key–value pairs. Keys must be strings.