{"uid":"cap_HeC_jJFFSPViq0DBDFxrI","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-e9e0639c","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-validator)","url":"https://email-verify.agentdiet.dev/v1/json-validator?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_J_M9tujsS8L7CilpaKXYI","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, malformed, or markdown-wrapped JSON strings (trailing commas, single quotes, fences) so multi-agent pipelines receive valid, parseable JSON","exampleAgentPrompt":"This JSON string from my LLM just crashed my pipeline — can you deterministically repair it and give me back valid JSON? Here it is: ```{name: 'Alice', age: 30,}```","exampleUseCases":[{"title":"Fix LLM JSON before database write","prompt":"My language model returned this JSON but it has trailing commas and single quotes and my parser is throwing errors — can you repair it so I can safely write it to the database? Here's the raw output: {name: 'Bob', scores: [10, 20, 30,], active: true,}"},{"title":"Recover truncated agent pipeline output","prompt":"My multi-agent workflow got cut off mid-response and produced this broken JSON — can you fix the truncation and return valid parseable JSON? The raw string is: {\"user\":\"alice\",\"items\":[\"a\",\"b\""},{"title":"Strip markdown fences from LLM JSON response","prompt":"My LLM wrapped its JSON output in markdown code fences and my downstream service can't parse it — please strip the fences and repair any other issues so I get clean JSON back. Here's the raw text: ```json\n{\"status\": \"ok\", \"count\": 5,}\n```"}],"resultDescription":"Returns a repaired, valid JSON object with the corrected structure, ready for downstream parsing — malformed syntax like trailing commas, single quotes, markdown fences, and truncation artifacts are resolved deterministically","failureModes":["JSON too severely truncated to infer structure — returns error indicating unrecoverable input","Input is not JSON-like at all (plain text, binary) — returns validation failure","Ambiguous schema inference from heavily malformed input may produce incorrect but technically valid JSON","Empty or whitespace-only raw_json input returns a 400-level error","Network timeout on large payloads"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair rather than LLM-based inference — ideal for multi-agent pipelines where consistency and predictability matter more than creative reconstruction. Best when dealing with common LLM output artifacts like trailing commas, markdown code fences, and single-quote delimiters rather than semantically corrupted data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:21.658Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}