{"uid":"cap_ZWmymAjaCd35l535TdhXU","slug":"agentdiet-malformed-json-healer-9330673c","name":"AgentDiet Malformed JSON Healer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/malformed-json-healer?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"}]},"paymentMethods":[{"uid":"pm_qDuywiovITnnJQv0iFOGF","protocol":"x402","methodType":"crypto","chain":"base","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 or broken JSON strings, returning a valid, healed JSON object.","exampleAgentPrompt":"I've got a malformed JSON string that keeps throwing parse errors — can you run it through AgentDiet's JSON healer to fix the syntax and give me back a valid, clean JSON object?","exampleUseCases":[{"title":"Fixing broken API response JSON","prompt":"This API response came back with invalid JSON — missing brackets and some stray commas. Can you heal it and return a valid object I can actually work with?"},{"title":"Repairing truncated LLM JSON output","prompt":"The model output got cut off mid-JSON and now it won't parse. Can you run it through the malformed JSON healer and patch it up so I can extract the data?"},{"title":"Sanitizing user-submitted JSON form data","prompt":"A user submitted some JSON config data through our form but it has syntax errors all over it. Can you fix it and return a properly structured JSON object?"}],"resultDescription":"Returns a JSON response with a 'data' field containing the healed/repaired JSON object, a 'status' field indicating success ('ok'), and an 'roi_proof' object showing the compression ratio achieved (e.g. compression_ratio_pct: 91.4).","failureModes":["Input JSON too corrupted to be deterministically healed — returns error or empty data object","Missing required 'input' field — schema validation error","Non-JSON input passed as raw_json — may return unparseable result","Network or payment failure via x402/USDC settlement — 402 response if payment not processed","Empty raw_json query parameter — no meaningful output"],"whenToPreferThis":"Choose this endpoint when you have a broken, malformed, or syntactically invalid JSON string that standard parsers reject and you need a deterministic, cheap ($0.002 USDC) programmatic repair without relying on a heavyweight LLM call. Particularly useful in agent pipelines where JSON responses from third-party APIs or LLMs are occasionally malformed and need automated healing before downstream processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:43.299Z","isFirstParty":false,"canonicalSlug":"agentdiet-malformed-json-healer-9330673c"}