{"uid":"cap_fZGvWpk2MGT_8YQSQ3VdF","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-e9e55bb6","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":"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_sMR5_hYnDFxkjxYaY6L_O","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, unclosed brackets) so AI agent pipelines can safely parse LLM outputs","exampleAgentPrompt":"The LLM just returned this JSON string but it has trailing commas and markdown fences around it — can you clean it up so the pipeline doesn't crash: ```{\"name\": \"Alice\", \"age\": 30,}```?","exampleUseCases":[{"title":"Fixing LLM output before downstream processing","prompt":"My language model returned this JSON with a trailing comma and it's breaking my parser — fix it for me: {\"status\": \"ok\", \"items\": [1, 2, 3,]}"},{"title":"Stripping markdown fences from agent response","prompt":"The agent wrapped its JSON in triple backticks again and now my pipeline is crashing — strip the fences and give me clean JSON from this: ```json\n{\"result\": \"success\"}\n```"},{"title":"Repairing single-quoted JSON from a Python agent","prompt":"I got back JSON with single quotes instead of double quotes from one of my agents — can you normalize this so it's valid JSON: {'user': 'bob', 'score': 42}?"}],"resultDescription":"A repaired, schema-valid JSON object derived from the input malformed string, with common LLM-generated errors (trailing commas, markdown fences, single quotes, truncation) corrected deterministically so the output is safe to parse programmatically.","failureModes":["Input string is too severely truncated to reconstruct — returns error indicating unrecoverable structure","Input is not JSON-like at all (e.g. plain prose) — may return parse failure","Ambiguous repair scenarios where multiple valid completions exist — deterministic repair may choose one interpretation","Network or payment (x402) issues may cause 402 or 5xx responses"],"whenToPreferThis":"Choose this endpoint when an AI agent or multi-agent pipeline receives JSON from an LLM that is syntactically invalid and needs deterministic, rule-based repair before further processing. Ideal for production pipelines where JSON parsing failures must be avoided and where the malformation patterns are known (trailing commas, markdown wrapping, single quotes, truncation). Prefer over prompt-retry strategies when latency and token cost matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:25:01.531Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}