{"uid":"cap_Q6TBpJDk5q5jG8sS49jlX","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-31ae58c1","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/json-fix)","url":"https://email-verify.agentdiet.dev/v1/json-fix?utm_source=zero.xyz","method":"POST","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_Y8wg8w3o8x0spUJbZpp8d","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 malformed, truncated, or markdown-wrapped JSON strings (trailing commas, single quotes, fences) so multi-agent pipelines can reliably parse LLM outputs","exampleAgentPrompt":"This LLM output came back as broken JSON with trailing commas and markdown fences — can you fix it so I can parse it? Here's the raw string: ```{\"name\": \"Alice\", \"score\": 42,}```","exampleUseCases":[{"title":"Fixing LLM pipeline JSON crashes","prompt":"My agent pipeline keeps crashing because the LLM keeps returning JSON with trailing commas and unclosed brackets — can you repair this raw string so it's valid JSON I can actually use? Here it is: {\"result\": \"success\", \"items\": [\"a\", \"b\",}"},{"title":"Stripping markdown fences from model output","prompt":"The model wrapped its JSON response in triple-backtick markdown fences and now my parser is throwing errors — can you clean this up and give me the valid JSON object? Raw output: ```json\n{\"status\": \"ok\", \"count\": 5}\n```"},{"title":"Recovering truncated JSON from partial LLM response","prompt":"My LLM hit its token limit mid-response and I got a truncated JSON string that cuts off halfway through — can you try to deterministically repair and complete it so I can extract the data? Here's what I got: {\"users\": [{\"id\": 1, \"name\": \"Bob\"}, {\"id\": 2"}],"resultDescription":"A repaired, valid JSON object reconstructed from the malformed input string, with common LLM-output issues (trailing commas, markdown fences, single quotes, truncation) corrected deterministically so downstream parsers can process it without errors","failureModes":["Input JSON too severely truncated or corrupted to deterministically reconstruct — returns error or best-effort partial result","Input string is not JSON at all (plain text, binary) — may return parsing failure","Ambiguous repair cases where multiple valid interpretations exist — deterministic heuristics may choose one silently","Empty or whitespace-only input — returns validation error","Network timeout or service unavailability — HTTP 5xx response"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline frequently receives malformed JSON outputs that need deterministic, rule-based repair rather than AI-generated guessing. Ideal for production pipelines where reliability and idempotency matter — supports Idempotency-Key headers for safe retries. Best when the malformation is systematic (trailing commas, markdown wrapping, single quotes) rather than deeply corrupted data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T06:46:09.710Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}