{"uid":"cap_vf7IUcfEtLYL1k0zJWQ7y","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-0f229fe5","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":"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_Jf8O9tsOkJBnN52SI-mEt","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, parseable JSON so multi-agent pipelines never crash.","exampleAgentPrompt":"This JSON came back from the LLM with trailing commas and markdown fences and it's breaking my pipeline — can you repair it and return clean, parseable JSON? Here it is: ```json {name: 'Alice', age: 30,} ```","exampleUseCases":[{"title":"Fix LLM output crashing agent pipeline","prompt":"My agent just got back this JSON from GPT-4 and it won't parse — it has single quotes and a trailing comma. Can you repair it so I can continue processing? Here's the raw string: {'user': 'bob', 'score': 95,}"},{"title":"Strip markdown fences from structured output","prompt":"The model returned its JSON wrapped in a markdown code block with backticks and a trailing comma and my pipeline is choking on it. Can you clean it up and give me back valid JSON? Here's what I got: ```json\n{\"name\": \"report\", \"value\": 42,}\n```"},{"title":"Validate and normalize truncated JSON response","prompt":"I got a response from an LLM that got cut off mid-object and has some broken syntax. Can you do your best to repair and normalize it into valid JSON? Here's the truncated string: {\"items\": [{\"id\": 1, \"label\": \"alpha\"}, {\"id\": 2"}],"resultDescription":"A JSON object containing the repaired, normalized, and fully valid JSON output. The response represents the best deterministic reconstruction of the malformed input, with issues like trailing commas, markdown fences, single quotes, and truncation resolved.","failureModes":["Input is so severely truncated or corrupted that no deterministic repair is possible — returns an error or best-effort partial result","Input string is empty or missing the required raw_json field — returns a validation error","JSON is structurally ambiguous in a way that cannot be resolved deterministically — may return an error or a best-guess result","Payment not provided or invalid — returns HTTP 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair of LLM outputs in a multi-agent pipeline and cannot afford crashes from malformed JSON. Prefer it over manual parsing hacks when you have issues like trailing commas, markdown fences, single quotes, or truncated strings. It is especially valuable in automated pipelines where you need consistent, idempotent repair without AI model overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:37:16.914Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}