Fix broken JSON: trailing commas, comments, single quotes, missing brackets and more. Runs entirely in your browser, so nothing is uploaded.
6 answers to what people ask most about the JSON Repair.
Trailing commas, // and /* */ comments, single quotes, unquoted keys, missing commas, missing closing brackets, Python True, False and None, MongoDB wrappers like ObjectId("…") and ISODate("…"), concatenated strings, and JSONP callbacks.
Yes. Model output often has code fences, comments, trailing commas or a cut-off ending. The repair closes open strings, arrays and objects so the result parses.
It only changes syntax. Keys and values are kept, but a cut-off value is closed where it ends, so check the end of truncated input.
It returns the repaired text with your original line breaks and spacing, changing only the broken parts. Formatted and Minified re-indent the whole document.
Some text is too ambiguous to fix safely, such as random characters between values. The message shows the line and column where repair stopped.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue