Concepts

JSON grammar

Try the free JavaScript compiler

Text grammar requires double-quoted strings and member names; no comments, trailing commas, functions or undefined. Root primitives are allowed.

Formal Syntax & Structure

javascript syntaxjavascript
value ::= object | array | string | number | true | false | null

Working Example

Example Snippetjavascript
console.log(JSON.parse("true"));
JavaScript Reference