A trailing comma
The comma after the last value is invalid JSON. The error points at the closing brace.
{
"a": 1,
}Checks whether the JSON parses. The text in the editor is not rewritten.
Ctrl+Enter or ⌘+Enter runs this tool immediately.
Waiting for input.
Parsing stays in this browser. Input is not uploaded or saved.
The comma after the last value is invalid JSON. The error points at the closing brace.
{
"a": 1,
}This parses, but only one value of name survives. The panel names the line of the second key.
{"name": "a", "name": "b"}Validate JSON, then pretty-print it with 2 or 4 spaces or minify it. Invalid JSON produces an error and leaves the output empty.
Check a JSON document against a JSON Schema in the browser. Draft-07 and 2020-12 are supported, and remote $ref values are not fetched.
Minify JSON in the browser by removing whitespace and line breaks. Values are unchanged, and the size saving is shown.