Fix broken JSON from AI output — trailing commas, single quotes, unquoted keys, comments, missing brackets. Powered by CapabilityBase Runtime.
LLMs generate JSON that looks right but fails to parse — trailing commas, single quotes, unquoted keys, inline comments, markdown wrappers, and trailing explanations. You don't need another chat. You need a deterministic tool that fixes it in milliseconds, every time, with zero network calls.
| ID | json.repair |
| Version | 1.0.0 |
| Status | stable |
| Category | Data |
| Contract | deterministic, no side effects, local, no AI |
| Runtime | Browser, Node, Edge, Worker |
| Consumes | json |
| Produces | json |
```json {...}``` → clean JSON
{"a": 1, "b": 2,} → {"a": 1, "b": 2}
{'a': 1} → {"a": 1}
{name: "test"} → {"name": "test"}
{"a": 1 // comment} → {"a": 1}
{"a": [1, 2 → {"a": [1, 2]}
AI is probabilistic. Your tools shouldn't be.
Yes. AI models commonly emit trailing commas, single quotes, unquoted keys, inline comments, markdown code fences and trailing explanations. JSON Repair strips all of those deterministically and returns clean, parseable JSON.
No. All processing runs locally in your browser with zero network calls. Your data never leaves the page — safe for production configs and proprietary payloads.
The tool reports the exact remaining problem with position context instead of guessing. You can then hand-fix that single spot or use the validate capability to isolate the error.
Yes. Every repair is listed in the "Repairs Applied" panel — trailing comma removed, quotes added, comment stripped — so you always know exactly what was modified and can audit the result.
Deploy this tool on Vercel · Ship faster with Cursor · Your static site on Cloudflare