{"uid":"cap_2hr2ec0sGk__j49RMFG5E","slug":"agentdiet-json-repair-318962a8","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://domain-osint.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_Pl0flFofdptGdx0nW1oMK","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_6PFACUJeN6OtwSTGcD7iE","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 parses malformed JSON strings, returning a corrected, valid JSON object with compression metadata.","exampleAgentPrompt":"Can you fix this broken JSON for me? It has missing quotes and a trailing comma: {name: 'Alice', age: 30,}","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The AI just gave me back some JSON but it's invalid — it has unquoted keys and trailing commas. Can you repair it and give me back a valid JSON object? Here it is: {user: 'bob', score: 42,}"},{"title":"Recover corrupted API response data","prompt":"I got a broken JSON response from an external API — looks like some brackets are missing and there are extra commas. Can you clean it up and return the fixed version?"},{"title":"Sanitize user-submitted JSON input","prompt":"A user submitted this JSON form data but it's malformed with single quotes instead of double quotes: {'product': 'widget', 'qty': 5}. Can you repair it into valid JSON before I save it?"}],"resultDescription":"Returns a JSON object with a 'status' field ('ok'), a 'data' field containing the repaired and valid JSON, and an 'roi_proof' object showing the compression_ratio_pct achieved during repair/normalization.","failureModes":["Input JSON is too severely corrupted to be repaired — returns error status","Missing required 'raw_json' query parameter — returns 400 or error response","Input is not JSON at all (e.g. plain text, binary) — repair may fail or return empty data","Payment not included or insufficient USDC — returns HTTP 402"],"whenToPreferThis":"Choose this endpoint when you need to repair or recover malformed JSON strings — especially output from LLMs, corrupted API responses, or user-submitted data with syntax errors like unquoted keys, trailing commas, or mismatched brackets. It is particularly useful in agentic pipelines where downstream tools require strictly valid JSON but the upstream source is unreliable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:30:16.910Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-318962a8"}