{"uid":"cap_gtuTzO6EY6JLmKIQYNhwU","slug":"agentdiet-json-repair-6f276cde","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://prompt-guard.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_wTnc4u1NXfjMVUrIiVtsR","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_QFQYXxoYK7YJ5ejsOBr1G","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 normalizes malformed JSON strings, returning a cleaned, valid JSON object with compression metadata","exampleAgentPrompt":"Can you repair this broken JSON for me? It has unbalanced brackets and missing quotes and I can't parse it: {name: 'Alice', age: 30, scores: [1, 2,}","exampleUseCases":[{"title":"Fix LLM output JSON errors","prompt":"The JSON my AI model returned is malformed — it has unquoted keys and a trailing comma. Can you run it through the JSON repair tool and give me back something I can actually parse? Here it is: {user: 'bob', active: true,}"},{"title":"Recover corrupted API response data","prompt":"I got a JSON response from an external API that got truncated and now won't parse. Can you fix it up so I can read the data? The broken string is: {\"id\":123,\"items\":[{\"name\":\"widget\",\"price\":9.99"},{"title":"Normalize inconsistent JSON before storage","prompt":"Before I store this data, can you clean up this messy JSON that has single quotes, unescaped characters, and missing closing braces? I need it to be valid JSON: {'product':'laptop','specs':{'ram':'16gb','storage':'512gb'}"}],"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 indicating how much the input was cleaned/compressed (e.g. 91.4%)","failureModes":["Input JSON is so malformed it cannot be heuristically repaired — returns error status","Missing required 'input' field or 'method' field in request body — returns 400-level error","Input is not JSON at all (e.g. plain text, binary) — may return empty or error result","Payment not completed via x402 — returns HTTP 402 requiring 0.002 USDC payment on Base network"],"whenToPreferThis":"Choose this endpoint when you have a malformed or invalid JSON string that needs to be recovered or normalized before it can be parsed or stored. Ideal for fixing LLM-generated JSON output, truncated API responses, or hand-edited JSON files with syntax errors. Prefer this over manual parsing when the JSON structure is mostly intact but has minor to moderate syntax violations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:41:13.651Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-6f276cde"}