{"uid":"cap_9qymvuyS68_ByAT5OHIgI","slug":"agentdiet-json-repair-endpoint-c953f028","name":"AgentDiet JSON Repair Endpoint","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://x402broker.com/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_D-XMuqrt7cUTYuxnj49ej","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_pCikC4lDT5pzDdPd7UO8V","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 validates broken or malformed JSON strings, returning a corrected, well-formed JSON object with compression metadata.","exampleAgentPrompt":"Can you repair this broken JSON for me? It has some missing quotes and an extra comma: {name: 'Alice', age: 30,}","exampleUseCases":[{"title":"Fix malformed LLM output JSON","prompt":"The JSON I got back from the model is broken — it has unquoted keys and trailing commas. Can you repair it so I can parse it? Here it is: {name: John, scores: [10, 20, 30,]}"},{"title":"Clean up corrupted webhook payload","prompt":"I got a webhook payload that's not valid JSON — it looks like the response got cut off mid-transmission. Can you fix it and return a valid JSON object? The raw string is: {\"user\":\"bob\",\"action\":\"login\",\"time\":"},{"title":"Validate and correct API response","prompt":"This API response JSON has some syntax errors with bad escape characters. Can you run it through the JSON repair tool and give me back a clean, valid version?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired JSON, a 'status' field ('ok' on success), and an 'roi_proof' object including a compression_ratio_pct metric showing how much the input was cleaned up.","failureModes":["Input JSON too corrupt to repair — returns error status","Missing required 'raw_json' query parameter — 400-level error","Input is not a string or is empty — validation failure","Payment not included or insufficient USDC — HTTP 402 response","Network timeout for very large JSON inputs"],"whenToPreferThis":"Choose this endpoint when you have a broken, malformed, or syntactically invalid JSON string that needs to be automatically repaired before processing. Particularly useful for fixing LLM-generated JSON with common errors (trailing commas, unquoted keys, missing brackets), truncated API responses, or webhook payloads with encoding issues. It is purpose-built for agent pipelines that need deterministic JSON normalization at low cost ($0.002 USDC) via x402 micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:20.191Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-endpoint-c953f028"}