{"uid":"cap_VtxvorsqNHoSO4f54Q82i","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-ff32f35f","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://domain-osint.agentdiet.dev/v1/json-normalizer)","url":"https://domain-osint.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_nliZU37QcaY3vwE_KRi1D","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"domain-osint.agentdiet.dev","brandSlug":"domain-osint-agentdiet-dev-mpp","brandBaseUrl":"https://domain-osint.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs malformed, truncated, or markdown-wrapped JSON strings (trailing commas, single quotes, code fences) into valid JSON for use in multi-agent pipelines","exampleAgentPrompt":"This JSON from the LLM is broken — it has trailing commas and markdown fences around it. Can you repair it so it parses correctly: ```{\"name\": \"Alice\", \"age\": 30,}```?","exampleUseCases":[{"title":"LLM pipeline JSON crash prevention","prompt":"The agent upstream just returned this malformed JSON with a trailing comma and I need to pass it downstream without crashing — can you fix it: {\"status\": \"ok\", \"results\": [1, 2, 3,]}"},{"title":"Markdown-fenced JSON cleanup","prompt":"My LLM wrapped its JSON response in triple-backtick markdown fences again, like ```json\n{\"key\": \"value\"}\n``` — strip that out and give me clean parseable JSON."},{"title":"Single-quoted JSON key repair","prompt":"I got this JSON back with single quotes instead of double quotes: {'user': 'bob', 'score': 42} — can you normalize it to valid JSON so my downstream tool doesn't throw a parse error?"}],"resultDescription":"A repaired, valid JSON object derived from the malformed input string, with syntax errors corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncation handled where possible.","failureModes":["Input is so severely truncated that valid JSON cannot be reconstructed — returns error or best-effort partial result","Input is not JSON-like at all (plain text, binary) — may return an error indicating unparseable input","Ambiguous repairs where multiple valid interpretations exist may produce incorrect structure","Network or payment authorization failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM that frequently produces markdown-wrapped, trailing-comma, or single-quoted output and you need a deterministic (non-LLM) repair step that is cheap, fast, and idempotent. Prefer it over writing custom regex fixers or calling another LLM to reformat JSON, especially when pipeline reliability and cost per call ($0.002) matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:21:19.748Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}