Loading JSON workspace...

JSON Repair

Paste JSON-like text from a log, a JavaScript object literal or a file that was cut off. The repair pass adds missing quotes, drops trailing commas and comments, and closes truncated brackets. When the text cannot be repaired, the error stays on the reported line and column instead of throwing.

How to use

  1. Paste the broken text into the left editor. A repair runs shortly after you stop typing.
  2. Read the repaired JSON on the right, or press the repair button to run it again immediately.
  3. If a banner names a line and column, fix that spot on the left. The previous successful result stays visible until a new repair works.

FAQ

Which mistakes can be repaired?
Single-quoted strings, trailing commas, comments, unquoted keys and a JSON value that ends early are the cases covered by the repair library.
What happens when the text is not close to JSON?
The repair stops and reports the library message with a line and column. The right editor is not replaced with a partial guess.
Will repair change the meaning of valid JSON?
Valid JSON is parsed and pretty-printed with the indent you selected. Key order from the input is kept.
Is the repaired text saved in the browser?
The left editor is saved locally. The repaired result is kept only in memory and is cleared when you leave or refresh.