Broken JSON & LLM Output Healer API
Repair malformed or truncated LLM JSON outputs into valid, schema-checked JSON in 1 ms.
Strip Markdown fences, fix single quotes & trailing commas, close truncated brackets, and validate against JSON Schema. Paste broken, truncated, or Markdown-fenced JSON from ChatGPT, Claude, or Llama and deterministically repair syntax errors in under 1 ms.
POST /v1/json-heal)
Ready
Paste broken JSON inside the raw field (and optionally attach a target schema) and press Run Live Tool.
Powered by Broken JSON & LLM Output Healer API (POST /v1/json-heal).
{
"ok": true,
"data": {
"valid": true,
"data": {
"name": "Ada",
"active": true,
"tags": [
"ai",
"edge"
]
},
"healed_json": "{\"name\":\"Ada\",\"active\":true,\"tags\":[\"ai\",\"edge\"]}",
"repairs": [
"stripped_markdown_fence",
"normalized_single_quotes",
"normalized_literals",
"removed_trailing_commas",
"closed_truncated_containers"
],
"schema_valid": null,
"schema_errors": []
},
"meta": {
"request_id": "req_jh_01",
"ms": 1
}
}
This tool runs on the exact same stateless Worker engine as our production APIs. Unlock up to 256 KB payloads with a Polar All-Access key (/pricing):
Repair malformed or truncated LLM JSON outputs into valid, schema-checked JSON in 1 ms.