{"uid":"cap_RfEepgLlekCpfKGKL7N5w","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-c77df94a","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-normalizer)","url":"https://email-verify.agentdiet.dev/v1/json-normalizer?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_yeXRQS2SESighoT0E28uf","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) into valid JSON so multi-agent pipelines never crash","exampleAgentPrompt":"The LLM just returned this broken JSON with trailing commas and markdown code fences — can you repair it into valid JSON so I can pass it to the next step? Here's the raw string: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"LLM output cleanup in agent pipeline","prompt":"My language model returned this JSON with trailing commas and single quotes that's breaking my downstream parser — fix it for me: {'name': 'Bob', 'score': 42,}"},{"title":"Strip markdown fences from structured output","prompt":"The AI wrapped its JSON response in a markdown code block with triple backticks and now my pipeline is crashing — can you clean it up and give me pure valid JSON? Here's what it returned: ```json\n{\"status\": \"ok\", \"count\": 5}\n```"},{"title":"Recover truncated JSON from long generation","prompt":"My model cut off mid-generation and the JSON is truncated — something like {\"items\": [{\"id\": 1, \"name\": \"widget\" — can you repair it into valid JSON so I can continue processing?"}],"resultDescription":"A JSON object containing the repaired and normalized version of the input string, with all syntax errors corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncations resolved where deterministically possible.","failureModes":["Input JSON too severely truncated to deterministically repair — returns error or best-effort partial result","Input is not JSON-like at all — may return an error indicating non-parseable input","Ambiguous repair cases where multiple valid completions exist — deterministic heuristic may choose unexpected structure","Empty or whitespace-only raw_json — returns validation error for missing/empty input"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that may contain common syntax errors (trailing commas, markdown fences, single quotes, minor truncation) and you need a deterministic, fast fix before passing the data downstream. Prefer it over custom parsing logic when you want a reliable, hosted microservice that handles the most common LLM JSON output failure modes without writing your own sanitizer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:43:52.836Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}