{"uid":"cap_e6g1UWHemcwzAUkRwgvcX","slug":"agentdiet-json-repair-schema-validator-0e1c2e88","name":"AgentDiet JSON Repair & Schema Validator","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://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_GFd9vT-BFzU7RFYKpv_lk","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_ND1fbAlCAFhmzOhdWVeuG","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 malformed or broken JSON strings deterministically, normalizing them into valid, schema-conformant JSON","exampleAgentPrompt":"Can you repair this broken JSON string for me — it's coming back malformed from a third-party API and failing to parse: '{name: \"Alice\", age: 30, active: true'","exampleUseCases":[{"title":"Fix LLM output JSON errors","prompt":"The JSON my AI pipeline just generated has mismatched brackets and unquoted keys — can you repair it so I can feed it into my database? Here's the raw broken output: '{user: \"bob\", scores: [1, 2, 3}'"},{"title":"Recover corrupted API response","prompt":"I'm getting a malformed JSON response from a vendor API that's missing closing braces and has trailing commas — can you fix it and give me back valid JSON I can actually use?"},{"title":"Validate and normalize agent tool output","prompt":"My agent tool is returning inconsistent JSON with syntax errors between runs — can you normalize this raw string into clean valid JSON: '[{\"id\":1,\"name\":\"test\",\"value\":null,}'"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired and validated JSON, a 'status' field ('ok' on success), and a 'roi_proof' object showing compression or normalization metrics such as compression_ratio_pct.","failureModes":["Input JSON too malformed to recover — returns error status","Missing required 'input' or 'method' fields — returns validation error","Empty or null raw_json query parameter — may return empty data","Network timeout for large payloads","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair rather than generative reformatting. Ideal when downstream systems require strict schema conformance and you cannot tolerate hallucinated field values from an LLM fix. Best for pipeline automation where JSON from external APIs, LLM outputs, or legacy systems arrives broken and must be reliably normalized before further processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:34:11.656Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-schema-validator-0e1c2e88"}