vc_json_repair
Repair malformed JSON from AI model output, fixing trailing commas, missing quotes, and other syntax errors to return valid parsed JSON.
Instructions
Repair malformed JSON from LLM output and return valid parsed JSON.
Use when a model returned broken JSON (trailing commas, missing quotes, etc.). Do not use for web fetching or search — use vc_web_search / vc_page_markdown.
Auth: free-trial or X-Vibes-Key preferred; else x402 (~$0.02). Side effects: none local; compute-only remote call. Idempotent for the same text. Returns repaired JSON, or payment_required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Malformed JSON or JSON-like text from an LLM. | |
| payment_signature | No | Optional x402 PAYMENT-SIGNATURE if not using X-Vibes-Key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |