{"uid":"cap_ia0hgdFp3Na-6Fon0M39z","slug":"agentdiet-json-repair-8400a6a4","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://shopify-spy.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_Ahbi1hFdsJdNilSUJYZm2","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_UgXOk5zPIKPgZXF90RKtD","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 a fixed, valid JSON object with a compression/distillation ratio proof.","exampleAgentPrompt":"This JSON string I got back is broken and won't parse — can you fix it for me? Here it is: {name: 'Alice', age: 30, hobbies: ['reading', 'coding'}","exampleUseCases":[{"title":"Fix malformed LLM JSON output","prompt":"The JSON that came back from my AI pipeline is broken — it has unquoted keys and a missing closing bracket. Can you repair it so I can process it? Here's the bad JSON: {user: 'bob', score: 42, tags: ['a', 'b'}"},{"title":"Repair API response before ingestion","prompt":"I'm getting a JSON response from a third-party API that sometimes has trailing commas and mismatched quotes. Can you clean it up and give me valid JSON? The broken string is: {\"id\": 123, \"name\": \"widget\",, \"price\": 9.99}"},{"title":"Recover corrupted config file JSON","prompt":"My config file's JSON got corrupted and won't parse — it's missing some closing braces and has a few syntax issues. Can you repair this JSON so I can load it again? Here it is: {\"host\": \"localhost\", \"port\": 5432, \"db\": \"myapp\""}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired, valid JSON, a 'status' field (e.g. 'ok'), and an 'roi_proof' object showing the compression_ratio_pct — indicating how much the repair/distillation reduced or normalized the payload.","failureModes":["Input JSON too malformed to recover — may return an error or empty data object","Missing required 'input' or 'method' fields returns a validation error","Network timeout or service unavailability returns a non-200 response","Payment failure via x402/USDC results in HTTP 402 before processing begins","Passing non-JSON content (e.g. plain text or XML) may produce unpredictable output"],"whenToPreferThis":"Choose this endpoint when you have a malformed or syntactically invalid JSON string that needs to be repaired programmatically before further processing. It is particularly useful for fixing LLM-generated JSON, corrupted API responses, or config files with minor syntax errors. It suits agentic pipelines that need lightweight, low-cost ($0.002 USDC) automatic JSON correction with a distillation proof.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:41:12.697Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-8400a6a4"}