{"uid":"cap_JW-EY8cc76bqpXowlDw4D","slug":"agentdiet-json-repair-api-3d90a315","name":"AgentDiet JSON Repair API","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://email-verify.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_-y6RaQeim861LM0UKfKWl","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_tOgZjnjXY8LYBdlpnM0Wg","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 cleans malformed JSON strings, returning fixed, valid JSON with compression metadata","exampleAgentPrompt":"Can you fix this broken JSON for me? It has some syntax errors and missing brackets: {name: 'Alice', age: 30, items: ['a', 'b'} — just return me the valid, repaired version.","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The AI model returned this JSON but it's broken and won't parse — can you repair it so I can use it in my pipeline? Here's the raw output: {\"user\":\"bob\", \"score\": 42, \"tags\": [\"a\", \"b\""}],"resultDescription":"x","failureModes":["Invalid or missing raw_json parameter returns error","Completely unparseable input with no recoverable structure may return empty data object","Non-JSON input may fail silently or return unchanged data","Network timeout on very large JSON inputs"],"whenToPreferThis":"Use this endpoint when you have a malformed, truncated, or syntactically broken JSON string that needs to be recovered into valid JSON — especially useful after LLM outputs, scraped API responses, or corrupted data pipelines produce invalid JSON. Prefer this over manual regex-based fixing when the JSON structure is partially valid but has common issues like trailing commas, unquoted keys, or mismatched brackets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:41:59.611Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-api-3d90a315"}