json_repair
Repair malformed or truncated JSON from LLMs, JS or Python: strips ```json fences and comments, fixes trailing commas, single quotes, unquoted keys, True/False/None, missing commas and unclosed strings/brackets. Returns the parsed JSON, a compact repaired JSON string and the list of fixes. Deterministic, no network. Price $0.0041 via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |