{"uid":"cap_T3ML4vShjqSVfmEexLJ_y","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-71a31a71","name":"Deterministic A2A Broken-JSON Repair & Schema Validator","description":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. (Live x402 v2, IETF MPP & MCP endpoint at https://email-verify.agentdiet.dev/v1/llm-json-schema-healer)","url":"https://email-verify.agentdiet.dev/v1/llm-json-schema-healer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["raw_json"],"properties":{"raw_json":{"type":"string","minLength":1,"description":"Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.002","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6fFJK8J8N4E9zPo-tKzrs","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"email-verify.agentdiet.dev","brandSlug":"email-verify-agentdiet-dev-mpp","brandBaseUrl":"https://email-verify.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash","exampleAgentPrompt":"This JSON string from the LLM has trailing commas and markdown fences and keeps crashing my pipeline — can you repair it into valid JSON: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output crashing agent pipeline","prompt":"The language model returned this broken JSON with trailing commas and it's crashing my next pipeline step — please repair it into valid JSON: {\"result\": \"success\", \"data\": [1, 2, 3,]}"},{"title":"Strip markdown fences from model response","prompt":"My LLM wrapped its JSON response in markdown code fences and my parser can't handle it. Can you clean this up into plain valid JSON: ```json\n{\"status\": \"ok\", \"value\": 42}\n```"},{"title":"Fix single-quoted JSON from AI output","prompt":"This AI-generated JSON uses single quotes instead of double quotes and my system rejects it — please fix it to valid JSON: {'user': 'bob', 'score': 95}"}],"resultDescription":"A JSON object containing the repaired, valid JSON derived from the malformed input — with trailing commas removed, markdown fences stripped, single quotes normalized to double quotes, and any truncation healed — ready for downstream parsing without errors","failureModes":["Input JSON is so severely malformed that deterministic repair cannot produce a valid result — returns error or best-effort output","Empty or whitespace-only raw_json input may return a validation error","Extremely long or deeply nested JSON strings may hit query-parameter length limits since this is a GET endpoint","JSON that mixes conflicting syntax errors may produce ambiguous repair outcomes"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline receives JSON that fails standard parsing due to common LLM output artifacts like trailing commas, markdown code fences, single quotes, or minor truncation. It is ideal for deterministic, lightweight JSON healing in real-time pipelines where reliability matters more than complex schema enforcement. Prefer this over custom regex heuristics or retrying the LLM when you need consistent, fast, pay-per-call JSON normalization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:24:44.741Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}