Paste broken AI output
Drop raw LLM text containing ```json blocks, single quotes, or trailing commas.
Recover valid RFC 8259 JSON from truncated or messy LLM responses in milliseconds using AST-aware jsonrepair inside browser memory.
Select broken JSON / text
fixes ```json fences, comments, Python True/None & cutoffs.json · .txt
Zero upload limits · Runs in browser RAM
Fixes fences, quotes & brackets
```json
{
// Model output cut off before closing
'status': 'ok',
'items': [
{id: 1, name: "Vector Index", active: True,},
{id: 2, name: "Reranker", active: false,
```
{
"status": "ok",
"items": [
{
"id": 1,
"name": "Vector Index",
"active": true
},
{
"id": 2,
"name": "Reranker",
"active": false
}
]
}| Property | JSON |
|---|---|
| File extension | .json |
| MIME type | application/json |
| Structure type | Hierarchical |
| Encoding | UTF-8 Text |
| Nesting support | Yes |
| LLM token efficiency | Low |
| Schema / typed | No |
| Best for | REST/GraphQL API payloads, nested web state, structured AI outputs, and universal cross-language interchange. |
Fix broken AI JSON outputs: strip markdown code fences, repair single quotes, comments, trailing commas, and unclosed brackets.
Drop raw LLM text containing ```json blocks, single quotes, or trailing commas.
Strip markdown wrappers, normalize quotes, and balance missing closing brackets.
Copy clean JSON or pipe it into JSON Schema Validator to check structure.
Validate payloads against Draft 2020-12 or Draft-07 schemas locally with AJV and inspect exact JSON Pointer error paths.
Shrink JSON arrays into Token-Oriented Object Notation (TOON) to cut GPT-4o and Claude prompt tokens up to 60%.
Convert JSON payloads into strict Zod v4 TypeScript validators (z.object, z.email(), z.int()) with z.infer type exports.
It repairs markdown ```json fences, JS // comments, unquoted keys, single quotes, trailing commas, Python True/False/None, and truncated brackets.
Yes. Stats summarize syntax fixes alongside clean formatted JSON output.
No. jsonrepair runs inside your browser Web Worker with zero uploads.