repair_json
Repairs malformed JSON emitted by LLMs by stripping markdown code blocks, single quotes, trailing commas, and Python literals to yield valid RFC 8259 JSON.
Instructions
Universal LLM JSON repair and syntax sanitizer. Fixes malformed JSON emitted by LLMs (stripping markdown code blocks, single quotes, trailing commas, and Python literals like True/False/None) into valid RFC 8259 JSON in sub-millisecond edge time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_json | Yes | Malformed or broken JSON string to repair. |