{"uid":"cap_iVwgHLJnxSGurKGQkQmKL","slug":"x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-ca3a8686","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://x402broker.com/v1/malformed-json-healer)","url":"https://x402broker.com/v1/malformed-json-healer?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_DkAG7X4ASpG6HZT8L0c_5","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"x402broker.com","brandSlug":"x402broker-com-mpp","brandBaseUrl":"https://x402broker.com","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash","exampleAgentPrompt":"This LLM response came back as broken JSON with trailing commas and markdown code fences — can you repair it so I can parse it cleanly: ```json {\"name\": \"Alice\", \"score\": 42, } ```","exampleUseCases":[{"title":"Fixing LLM pipeline JSON crashes","prompt":"My agent just got back a malformed JSON response from the model with trailing commas and it's crashing my pipeline — here's the raw string, can you repair it so it's valid JSON I can pass to the next step?"},{"title":"Stripping markdown fences from model output","prompt":"The LLM wrapped its JSON output in triple-backtick markdown fences again and my parser is choking on it — can you strip the fences and fix any other issues so I get a clean parseable JSON object back?"},{"title":"Recovering truncated JSON from a cut-off response","prompt":"The API response got cut off mid-JSON and now it's truncated and unparseable — here's what I got: '{\"items\": [{\"id\": 1, \"name\": \"foo\"' — can you repair and close it out into valid JSON?"}],"resultDescription":"A repaired, valid JSON object derived from the submitted malformed or truncated input string, with all syntax errors corrected including trailing commas removed, markdown fences stripped, single quotes normalized to double quotes, and truncation completed where possible.","failureModes":["Input so severely malformed that deterministic repair is impossible — returns error or best-effort partial output","Ambiguous truncation with multiple valid completions — may return one interpretation without guaranteeing correctness","Very large JSON strings may hit size limits","Semantically invalid JSON (correct syntax but wrong schema) will be returned as-is without semantic correction"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline is receiving JSON outputs that frequently contain syntax errors like trailing commas, markdown code fences, single-quoted keys, or truncated structures. It is ideal for hardening agentic pipelines that call LLMs directly and need a reliable repair step before downstream JSON parsing. Prefer it over manual regex fixes or ad-hoc parsing hacks when you need deterministic, repeatable repair behavior at low cost ($0.002/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:32:23.307Z","isFirstParty":false,"canonicalSlug":"x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-c53712d8"}