{"uid":"cap_WvcCHz32_s28nIpTQl2qA","slug":"agentdiet-json-repair-0a58e4e2","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://sec-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_ot9EddhBxZ9IvxD_PSpOB","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_XI5_VPIf7Ib1HNQSdBHiw","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 a compression ratio metric.","exampleAgentPrompt":"Can you repair this malformed JSON for me — it has some missing brackets and bad quotes — and give me back the fixed, valid version: {\"name\": \"Alice\", \"age\": 30, \"city\": \"New York\"?","exampleUseCases":[{"title":"Fix broken LLM JSON output","prompt":"The LLM I was using returned some JSON but it's malformed and won't parse — can you run it through the JSON repair tool and give me back something valid? Here's the broken output: {\"result\": \"success\", \"data\": [1, 2, 3}"},{"title":"Recover data from corrupted API response","prompt":"I got a corrupted JSON response from an external API with mismatched braces and missing quotes — can you repair it so I can extract the fields I need? Here it is: {\"user\":\"bob\",\"score\":42,\"tags\":[\"a\",\"b\""},{"title":"Clean up scraped JSON before storage","prompt":"I scraped some JSON from a webpage but it came back with syntax errors and invalid escape sequences — can you fix it up and return a clean, valid JSON object so I can store it properly?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired JSON, a 'status' field ('ok' on success), and an 'roi_proof' object including a 'compression_ratio_pct' value indicating how much the repair process compressed or cleaned the input.","failureModes":["Irreparably malformed input with no recoverable structure returns an error status","Empty or null input may return a 400-level error","Non-JSON input (e.g. plain text or binary) may fail to parse or produce unexpected output","Extremely large JSON payloads may time out or be rejected","Missing required 'input' field returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-call JSON repair without maintaining your own parser infrastructure. Best suited for agents that encounter malformed JSON from LLMs, scrapers, or external APIs and need a quick, cheap fix (at $0.002 USDC per call via x402). Prefer this over building custom repair logic when you need a standalone, stateless microservice for JSON cleaning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:34:55.599Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-0a58e4e2"}