{"uid":"cap_afOqVSG_eGcpyyptxVA3K","slug":"defi-intel-agent-gateway-json-repair-67d4c114","name":"DeFi Intel Agent Gateway – JSON Repair","description":"Repair malformed JSON produced by LLMs using deterministic Zod-validated cleanup — $0.001 USDC/call on eip155:8453. Pay-per-call via x402 — no API key, no account. Free samples daily.","url":"https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/json-repair","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mYHsyz6syTwxnPZxlhBl7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON output from LLMs using deterministic Zod-validated cleanup, returning valid structured JSON for $0.001 USDC per call via x402.","exampleAgentPrompt":"The LLM just returned some broken JSON that won't parse — can you run it through the JSON repair service to clean it up and get me back a valid JSON object?","exampleUseCases":[{"title":"Fix LLM-generated API response","prompt":"The AI model returned a malformed JSON payload with missing closing brackets and unescaped quotes — can you repair it so I can process it downstream?"},{"title":"Sanitize chatbot structured output","prompt":"My chatbot is outputting JSON that sometimes breaks because of hallucinated formatting — run this through the JSON repair endpoint and give me back a clean, valid object I can store."},{"title":"Recover truncated JSON from pipeline","prompt":"This JSON from my data pipeline got truncated mid-stream and now it won't parse — fix it for me using the deterministic Zod-validated repair service."}],"resultDescription":"A valid, Zod-validated JSON object that has been deterministically cleaned from the malformed input. The response contains the repaired JSON structure, ready for downstream consumption without further parsing errors.","failureModes":["Input JSON too corrupted to repair — returns error indicating unrecoverable structure","Payment not included or insufficient — x402 payment required error","Invalid HTTP method — only POST, PUT, PATCH accepted","Body type mismatch — bodyType enum must be json, form-data, or text","Daily free sample quota exhausted — payment required"],"whenToPreferThis":"Choose this endpoint when you need a cheap, deterministic, no-auth fix for malformed JSON produced by LLMs or pipelines. It is ideal for agentic workflows where LLM outputs are unpredictable and downstream systems require valid JSON. Prefer it over custom parsing logic when you want reliable Zod-schema validation at $0.001/call without managing API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:22.293Z","isFirstParty":false}