{"uid":"cap_-tVCCDpTz1CvoeHdJhQGT","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-0ac2fc85","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":"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_yZJegTDwsj5vBOl3TUW5t","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 won't parse — can you repair it and give me valid JSON back? Here it is: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output in agent pipeline","prompt":"The language model just returned a response wrapped in markdown code fences with trailing commas and it's breaking my pipeline — can you clean it up and give me valid parseable JSON? Here's the raw output: ```json\n{\"status\": \"ok\", \"items\": [\"a\", \"b\",],}```"},{"title":"Repair truncated JSON from timeout","prompt":"My API call timed out mid-response and I got a truncated JSON string that cuts off halfway through — can you repair it into valid JSON? The broken string is: {\"user\": \"bob\", \"score\": 42, \"tags\": [\"alpha\","},{"title":"Sanitize single-quoted JSON for downstream tool","prompt":"I have a JSON-like string using single quotes instead of double quotes that a downstream tool is rejecting — can you fix it to proper JSON? Here it is: {'product': 'widget', 'price': 9.99, 'available': true}"}],"resultDescription":"A repaired, valid JSON object reconstructed from the malformed input, with common LLM output issues such as trailing commas, markdown fences, single quotes, and truncation resolved deterministically.","failureModes":["Input is so severely malformed or truncated that deterministic repair is impossible — returns error with description","Input is not JSON-like at all (e.g. plain prose) — returns validation failure","Ambiguous structure where multiple valid repairs exist — may return best-guess or error","Network timeout or service unavailability — returns 5xx error"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that fails to parse due to common formatting issues like trailing commas, markdown code fences, single quotes, or truncation. It is especially valuable as a middleware step between an LLM output stage and any downstream tool or agent that requires strictly valid JSON, avoiding pipeline crashes without manual intervention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:34:43.397Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}