{"uid":"cap_39VI4SzHxzfNMzN57oYl_","slug":"agentdiet-json-repair-a498e1d2","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://github-audit.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_5LflaysCkWnUcrwREmyOs","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_5iJyMrO5YIFpoPCV2hUwC","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 or broken JSON strings, returning a corrected, valid JSON object","exampleAgentPrompt":"Can you fix this broken JSON for me? I have a malformed string with missing brackets and syntax errors that keeps failing to parse: {\"name\":\"Alice\",\"age\":30,\"city\":\"New York\",,}","exampleUseCases":[{"title":"Fix LLM-generated broken JSON","prompt":"My language model just returned this JSON but it has extra commas and unclosed brackets — can you repair it so I can actually parse it? Here's the broken output: {\"results\":[{\"id\":1,\"value\":\"foo\",,},{\"id\":2,\"value\":\"bar\"}"}],"resultDescription":"Returns a JSON object with 'status: ok', a 'data' field containing the repaired and valid JSON, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) indicating how much cleanup was performed.","failureModes":["Input JSON is so severely malformed that no valid repair can be inferred — returns error status","Missing required 'input' or 'method' fields — returns 400-level error","Input is not JSON at all (e.g. plain text or binary) — repair may fail or return unexpected output","Network timeout if the repair computation takes too long for extremely large payloads"],"whenToPreferThis":"Choose this endpoint when you have a malformed, truncated, or syntactically broken JSON string that you need to recover and make parseable — especially useful for fixing LLM-generated JSON, corrupted API responses, or hand-edited JSON files with syntax errors. Prefer this over manual regex patching or writing custom repair logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:34:16.925Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-a498e1d2"}