repair_json
Repair malformed JSON produced by an LLM or agent (trailing commas, missing quotes, code fences, chatty text around the JSON, blocks, double-encoded JSON) and check the result against a JSON Schema. Returns the repaired value, what was changed, what could not be fixed (unresolved_errors), and truncated: true when the input looks cut off (e.g. by a token limit) so you can retry instead of trusting it. It never invents missing data. Free trial, no signup: 20 calls per client per day, 20000 characters per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The raw model output (a string), or an already-parsed object/array. | |
| schema | Yes | A JSON Schema (draft 2020-12) describing the desired shape. |