repair_json
Deterministically parses and repairs malformed, truncated, or unclosed JSON strings produced by LLMs (e.g. missing closing brackets, unescaped quotes, trailing commas). Returns parsed valid JSON object. Use when an LLM produces syntax-broken JSON. Do not use on valid non-JSON prose or for modifying data values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_json | Yes | The unparsed, malformed, or incomplete JSON text string requiring syntax repair into standard RFC 8259 format. |