{"uid":"cap_KDcdn4UTtp9Mkj0eKiZCh","slug":"agentdiet-json-repair-f45df64e","name":"AgentDiet JSON Repair","description":"15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).","url":"https://onchain-risk.agentdiet.dev/v1/json-repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"raw_json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r4v0S9wgs44xwGS9pKeoU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_fx4vP7dyoBg2tRLdnfzo4","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs and normalizes malformed JSON strings, returning cleaned valid JSON with a compression/ROI proof metric","exampleAgentPrompt":"I have this broken JSON string that won't parse — can you run it through AgentDiet's JSON repair to fix the syntax errors and give me back valid, clean JSON?","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"This JSON I got from a language model response has mismatched brackets and unquoted keys — can you repair it and give me back valid JSON I can actually use?"},{"title":"Clean up scraped API response","prompt":"The third-party API returned a garbled JSON string with missing commas and trailing garbage — please fix it using AgentDiet's JSON repair so I can extract the data fields."},{"title":"Recover corrupted config file","prompt":"My config file somehow got corrupted and the JSON won't parse anymore — can you run it through JSON repair to restore it to a valid structure?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired JSON, a 'status' field ('ok' on success), and a 'roi_proof' object containing 'compression_ratio_pct' indicating how much the input was cleaned/compressed as a percentage.","failureModes":["Input JSON is too malformed to be repaired — returns error status","Missing required 'raw_json' query parameter — returns validation error","Network timeout or service unavailability","Input exceeds maximum size limits — returns size error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call JSON repair service accessible via simple GET request with USDC micropayment (x402). Prefer it over client-side JSON parsers when you need a reliable cloud-based fix for LLM outputs, scraped data, or corrupted API responses, especially in agent pipelines where bad JSON would otherwise break downstream steps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:05.289Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-f45df64e"}