Loading…
Data & encoding
Format, minify and validate JSON. Errors are pinpointed to the line and column.
Runs in your browser — nothing you paste is uploaded
{
"name": "Ryujin",
"title": "Dragon god of the sea",
"breath": "blue plasma",
"guards": [
"DevJiaVu",
"the Lab"
],
"stats": {
"wings": 2,
"naps": 9001,
"fierce": false,
"favouriteSnack": null
}
}9 keys2 levels deep173 B in → 234 B out
No. Formatting and validation run in your browser with JavaScript's own JSON parser; nothing you paste leaves the page.
The usual causes are trailing commas, single quotes, unquoted keys and comments, none of which strict JSON allows. The error gives the line and column, and “Show me where” puts the cursor on it.
It reorders every object's keys alphabetically, at every level, which makes two JSON documents easier to compare. Array order is never changed.