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 →

JSON Formats & Variants

JSON vs JSON5 vs JSONC: What's the Difference?
When to use standard JSON, JSON5 with comments and trailing commas, or JSONC for config files.
Read guide →

Language Guides

Format JSON in Python
json.dumps, indent, sort_keys, ensure_ascii — complete code examples for every formatting need.
Read guide →
Format JSON in JavaScript
JSON.stringify, replacers, indentation, and handling edge cases in Node.js and the browser.
Read guide →