JSON Guides & Reference
Practical guides for understanding and working with JSON — from basic syntax to real-world tooling.
Formatting & Indentation
How to Format JSON Online
When to use an online formatter, how to choose an indent size, and what happens under the hood.
Read guide →
How JSON Indentation Works
Why whitespace is ignored by parsers but matters for humans, and how formatters add it back.
Read guide →
Pretty-Print JSON in the Terminal
Using jq, Python's json.tool, curl, and other command-line tools to format JSON output.
Read guide →
Validation & Errors
JSON Validator: How to Check JSON Syntax
What validation means, how to validate in the browser, in Python, in JavaScript, and in a shell script.
Read guide →
Common JSON Syntax Errors and How to Fix Them
Trailing commas, single quotes, unquoted keys, comments, and eight other mistakes that break JSON.
Read guide →
Minification & Comparison
How to Minify JSON (and When You Shouldn't)
How much size minification actually saves, when it helps, and when it makes things harder.
Read guide →
Comparing Two JSON Files: A Guide to JSON Diffing
Why a text diff fails for JSON, what a JSON-aware diff shows, and how to compare programmatically.
Read guide →