JSON
JSON (JavaScript Object Notation) is a text format for structured data built from objects, arrays, strings, numbers, booleans and null.
The syntax is small: keys must be double-quoted strings, there are no comments, no trailing commas and no undefined value. Trailing commas and single quotes are the two mistakes that break the most real-world payloads.
Parsers are strict on purpose. A document either parses completely or not at all, which is why the useful error is not "invalid JSON" but the exact line and column where parsing stopped.
Numbers are not typed: 1 and 1.0 are the same value, and integers larger than 2^53 lose precision in JavaScript. Send big identifiers as strings.
Apply it: JSON Formatter
JSON formatter and validator that formats, minifies and checks JSON with precise error line and column, key sorting and live stats — entirely in your browser.
Open the free JSON Formatter →Related terms
- Base64 — Base64 is an encoding that turns arbitrary bytes into 64 printable characters so binary da…