{"uid":"cap_JjrDGRYEYLqN1NKmz3Vaq","slug":"agentdiet-malformed-json-healer-83fabb78","name":"AgentDiet Malformed JSON Healer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.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_ScbQQqpl83uZ-n8CBtycf","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 normalizes malformed or broken JSON strings, returning valid, parsed JSON output.","exampleAgentPrompt":"I got back a broken JSON string from another API — can you heal and fix it so I get valid, parseable JSON? Here's the raw malformed string: '{name: \"Alice\", age: 30, items: [1, 2,}'","exampleUseCases":[{"title":"Fix broken API response JSON","prompt":"The third-party API I'm calling keeps returning malformed JSON with missing quotes and trailing commas — can you heal this broken string for me so I can actually parse it: '{user: \"bob\", status: active,}'"},{"title":"Recover corrupted LLM output JSON","prompt":"My language model generated this JSON but it has syntax errors and won't parse — can you repair it and return valid JSON? Here it is: '{\"results\": [{\"id\": 1, \"value\": \"ok\"}, {\"id\": 2, \"value\":}'"},{"title":"Normalize scraped JSON-like data","prompt":"I scraped some data that looks like JSON but isn't quite valid — single quotes, unquoted keys, the works. Can you heal this into proper JSON? Raw input: \"{name: 'Alice', city: 'NYC', scores: [10, 20, 30}\""}],"resultDescription":"Returns a JSON object with a 'status' field ('ok' on success), a 'data' field containing the repaired and parsed JSON object, and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%).","failureModes":["Input JSON too corrupted to recover — returns error or empty data object","Missing 'raw_json' query parameter — request fails with validation error","JSON that is structurally ambiguous beyond repair may return partially healed output","Network or upstream service timeout on large payloads"],"whenToPreferThis":"Choose this endpoint when you have a malformed, corrupted, or syntactically broken JSON string that needs to be repaired into valid, parseable JSON before further processing. It is ideal for fixing LLM-generated JSON with syntax errors, recovering data from broken API responses, or normalizing JSON-like strings with non-standard formatting. Prefer it over generic string processing tools when the goal is specifically to produce valid JSON output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:11.701Z","isFirstParty":false,"canonicalSlug":"agentdiet-malformed-json-healer-83fabb78"}