{"uid":"cap_6xfeRtlTgLG7la9fpduIM","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-8e016e9f","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":"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_0__5jMO--jF92UYNZQ3Ex","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 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 code fences and won't parse — can you fix it and give me back valid JSON? Here it is: ```json {\"name\": \"Alice\", \"age\": 30,} ```","exampleUseCases":[{"title":"Fix LLM output in agent pipeline","prompt":"The language model just returned a JSON blob with trailing commas and it's breaking my pipeline — can you repair this string so it parses cleanly? Here's the raw output: ```json {\"status\": \"ok\", \"items\": [\"a\", \"b\",],} ```"},{"title":"Strip markdown fences from API response","prompt":"I got a response from an AI model wrapped in triple-backtick markdown fences with single quotes instead of double quotes — can you normalize it into valid JSON? The string is: ```{\"user\": 'john', \"score\": 42}```"},{"title":"Rescue truncated JSON from crashed LLM call","prompt":"My LLM call got cut off mid-response and the JSON is truncated — it ends abruptly without closing braces. Can you repair this broken JSON so I can still use the partial data? Here it is: {\"report\": {\"title\": \"Q1 Results\", \"summary\": \"Revenue increased"}],"resultDescription":"A repaired, syntactically valid JSON object reconstructed from the malformed input, with issues like trailing commas, markdown code fences, single quotes, and truncation corrected deterministically.","failureModes":["Input is so severely corrupted that repair is impossible — returns error indicating unrecoverable JSON","Input is not JSON-like at all (plain text, binary) — returns validation error","Ambiguous repairs where multiple valid interpretations exist may produce unexpected structure","Payment failure via x402 if USDC balance is insufficient — returns HTTP 402"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline receives JSON outputs that fail standard JSON.parse() due to common LLM formatting errors (trailing commas, markdown fences, single quotes, truncation). It is deterministic — not probabilistic — making it suitable for production pipelines where consistency matters. Prefer it over writing custom regex or using general-purpose LLM calls to fix JSON, as it is purpose-built, cheap at $0.002/call, and idempotent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:35:58.008Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}