devpocket.dev

LLM JSON Repair

Fix broken JSON from model output: code fences, trailing commas, comments, truncation.

Runs locally
Loading tool…

How to use

Paste the raw model response on the left. The tool:

  1. Extracts the JSON from ```json fences or surrounding prose.
  2. Repairs single quotes, unquoted keys, trailing commas, comments, None/True, and truncated endings.
  3. Pretty-prints the result so you can copy it straight into your code.

The list under the output shows exactly what was changed.

FAQ

Is my data sent to a server?

No. Parsing and repair run entirely in your browser.

Can it recover truncated output?

It closes unterminated strings, arrays and objects so the JSON parses. Data that was never generated cannot be recovered.

Related tools