{"uid":"cap_fCmTjr33aTnyRW_JhXSmD","slug":"agentdiet-json-repair-endpoint-aea1a715","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://cve-intel.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_lVFABhhYDjWAzbr-GVQkz","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_MQ7urx1CYKoBwq7JcUS-6","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 valid, compressed JSON output with a compression ratio proof.","exampleAgentPrompt":"Can you repair this broken JSON string for me? It has some missing quotes and mismatched brackets: `{\"name\": \"Alice\", age: 30, \"active\": true,}`","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The language model returned this JSON but it's broken — can you fix it so I can parse it? Here it is: `{name: 'Bob', scores: [1, 2, 3,], active: true}`"},{"title":"Clean API response before storage","prompt":"I got this malformed JSON back from a third-party API and I need to clean it up before saving it to the database — can you repair it? `{\"id\": 42, \"tags\": [\"a\", \"b\", \"c\",}, \"status\": \"ok\"}`"},{"title":"Validate and normalize config file JSON","prompt":"My config file JSON has a syntax error somewhere and won't parse — can you repair it and give me back valid JSON? Here's the raw content: `{\"timeout\": 30, \"retries\": 3 \"host\": \"localhost\"}`"}],"resultDescription":"Returns a JSON object containing the repaired data under a 'data' key, a 'status' field (e.g. 'ok'), and an 'roi_proof' object showing the compression ratio percentage (e.g. 91.4%) achieved during repair/distillation.","failureModes":["Input JSON is too malformed to recover — returns error status","Missing required 'input' or 'method' fields — returns validation error","Input is not JSON at all (e.g. plain text or binary) — may return empty or error response","Network timeout or service unavailability — returns HTTP 5xx","Insufficient USDC balance for x402 payment — returns HTTP 402 with payment required details"],"whenToPreferThis":"Choose this endpoint when you have a malformed or invalid JSON string that needs to be repaired programmatically, especially in agent pipelines where LLM-generated or third-party API output may contain JSON syntax errors. It is particularly useful when you want a compression ratio metric to confirm the transformation quality. Prefer this over manual parsing when you need a reliable, paid-per-call microservice with x402 USDC payment support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:40:20.811Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-endpoint-aea1a715"}