{"uid":"cap_EBx_tOHrEu-z-5GtD9MCt","slug":"agentdiet-json-repair-endpoint-732f80c1","name":"AgentDiet JSON Repair Endpoint","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://mcp-compiler.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_JLPYEhjJIgFNnPG95D2Fh","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_T5uDWR9kz7ssbgDEuEBCZ","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 a valid, distilled JSON object with compression metadata","exampleAgentPrompt":"Can you fix this broken JSON for me — it has missing quotes and trailing commas and I can't parse it: `{name: 'Alice', age: 30,}`?","exampleUseCases":[{"title":"Repair API response before processing","prompt":"I got a malformed JSON response back from an external API — it has unbalanced brackets and unquoted keys. Can you repair it into valid JSON so I can extract the data I need?"},{"title":"Fix LLM-generated JSON output","prompt":"The AI model returned some JSON but it has trailing commas and single quotes instead of double quotes. Can you clean it up into properly valid JSON?"},{"title":"Recover data from corrupted config file","prompt":"My config file got partially corrupted and the JSON is broken — it's missing some closing braces. Can you repair it and give me back a valid JSON object?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired and valid JSON, a 'status' field ('ok' on success), and an 'roi_proof' object containing a 'compression_ratio_pct' value indicating how much the input was compressed or cleaned during repair (e.g. 91.4%).","failureModes":["Input JSON is so severely malformed that heuristic repair fails — returns error status","Missing required 'raw_json' query parameter — returns validation error","Input is not JSON at all (e.g. plain text or binary) — may return empty data or error","Network timeout or service unavailability — standard HTTP 5xx errors","Payment failure via x402 — HTTP 402 returned if USDC payment not completed"],"whenToPreferThis":"Choose this endpoint when you have a malformed or syntactically invalid JSON string that needs to be automatically repaired before downstream processing. It is especially useful when dealing with LLM-generated JSON, scraped web content, or third-party API responses that frequently return subtly broken JSON. It also provides a compression ratio metric useful for auditing data quality. Prefer alternatives if you need full schema validation against a specific schema (not just syntactic repair), or if you need to transform JSON structure rather than fix it.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:39:31.075Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-endpoint-732f80c1"}