Skip to content

Repair malformed JSON

Fix the usual hand-written JSON errors and review every change. If the document still cannot be parsed, the tool says so instead of inventing a result.

Try it locally63 bytes · nothing leaves this page

What it can fix

The repair pass removes a BOM and comments, converts single-quoted strings, replaces Python True/False/None, removes trailing commas and quotes bare keys. Each action is reported.

  • Conservative: no guessing at missing brackets or truncation
  • Duplicate keys are reported, not silently invented
  • Output is re-serialised only when parsing succeeds
  • The original text remains in the input for comparison

When repair is the wrong tool

If a payload is truncated or a streaming log line is incomplete, repair cannot recover the missing data. Fix the producer or re-fetch the payload; the timeline view will show skipped lines for JSONL input.

Questions

Does repair invent missing values?

No. It only normalises syntax it understands. If parsing still fails, it returns the partially repaired text with the remaining error.

Can it fix comments in JSONC?

Yes, comments and trailing commas are removed, but the studio can also keep them by treating the document as JSONC rather than standard JSON.

Go further in the studio

This page is intentionally a single-purpose tool. The full studio adds synchronized views, profiling, data-quality rules, schema comparison, three-way merge, transformation pipelines, timelines and local persistence. Open it with the same document and continue where this page stops.

Open JSON Forge Studio →