{"uid":"cap_otRaOEa_fJzNx3z09uC5G","slug":"agentdiet-json-repair-3be16efb","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://alpha-stream.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_388asAixVMFxcLSv8vHNe","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_PfA5WGTcPsTYlM3rPkRsU","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 corrected JSON with compression ratio metadata","exampleAgentPrompt":"Can you fix this broken JSON string for me? It's got missing quotes and trailing commas and won't parse: {name: 'Alice', age: 30,}","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"This JSON came back from an AI model and it's broken — fix it so I can parse it: {\"user\": \"bob\", \"score\": 42, \"tags\": [\"alpha\", \"beta\",]}"},{"title":"Recover corrupted API response data","prompt":"I got a garbled JSON response from an external API with unclosed brackets and missing commas — can you repair it so I can extract the data? Here it is: {\"id\": 101 \"name\": \"Widget\" \"price\": 9.99}"},{"title":"Clean up user-submitted JSON config","prompt":"A user pasted this config JSON into our form but it's invalid — please repair it: {debug: true, timeout: 30, retries: 3,}"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired and valid JSON, a 'status' field (e.g. 'ok'), and an 'roi_proof' object including a compression_ratio_pct metric indicating how much the repair cleaned up the input.","failureModes":["Input is so malformed it cannot be meaningfully repaired, returning an error status","Non-JSON input (e.g. plain text or binary) may produce unpredictable output","Very large JSON strings may time out or exceed input limits","Missing required 'raw_json' query parameter results in a validation error"],"whenToPreferThis":"Choose this endpoint when you have a malformed or invalid JSON string that needs to be repaired programmatically, especially when the JSON comes from LLM outputs, user input, or unreliable APIs. It is particularly useful when standard JSON parsers reject the input due to syntax errors like trailing commas, unquoted keys, or missing brackets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:41:36.373Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-3be16efb"}