json.reez.cc

json --format

JSON formatter & validator

Paste JSON to format, validate and repair it. Errors come with line and column, numbers stay exactly as written, and nothing leaves your browser.

input

Paste JSON, drop a file or load the sample.

output

Formatted output appears here.

What repair fixes

JSON from logs, config files or chat messages is often almost valid. With Repair invalid JSON on, the formatter tells you where the strict parser stopped and still gives you clean output. It handles comments, trailing and missing commas, single and typographic quotes, unquoted keys, True, None and undefined, hex numbers, input that was cut off in the middle, and several values in a row (JSON Lines), which become one array.

Numbers are never re-encoded: 12345678901234567890 and 1.0 come out the way they went in, whichJSON.parse based formatters cannot do.

More