{"uid":"cap_vtGci8QRocFzgSZwTp3EC","slug":"x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-c53712d8","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/repair)","url":"https://x402broker.com/v1/repair?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_3I0jUKQULulOEBO3jjbic","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) into valid JSON so multi-agent pipelines never crash.","exampleAgentPrompt":"The JSON I got back from the LLM has trailing commas and markdown code fences — can you repair it so it parses cleanly? Here it is: ```json {\"name\": \"Alice\", \"age\": 30,} ```","exampleUseCases":[{"title":"Fix LLM output crashing pipeline","prompt":"The JSON my LLM just returned has a trailing comma and is wrapped in markdown fences and it's breaking my downstream parser — can you repair this for me: ```json {\"status\": \"ok\", \"score\": 0.92,} ```"},{"title":"Repair truncated agent response","prompt":"My agent's JSON response got cut off mid-string and now it won't parse — please fix this truncated JSON so I can continue: {\"results\": [{\"id\": 1, \"value\": \"hello\"}"},{"title":"Sanitize single-quoted JSON keys","prompt":"I have JSON with single quotes around the keys instead of double quotes and it's invalid — can you repair it into proper JSON? Here it is: {'user': 'bob', 'active': true}"}],"resultDescription":"Returns a repaired, valid JSON object where malformed elements such as trailing commas, markdown code fences, single-quoted keys/values, and truncated structures have been corrected and the output is parseable by standard JSON parsers.","failureModes":["Input is so severely malformed that deterministic repair cannot infer intent — returns an error or best-effort partial result","Input is not JSON at all (e.g. plain prose) — repair may fail or produce nonsensical output","Extremely long or deeply nested truncated JSON may not be fully recoverable","Network or payment (x402) failure results in no response"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline receives JSON that fails to parse due to common LLM formatting errors like trailing commas, markdown fences, single quotes, or truncation. It is especially useful in automated A2A pipelines where a downstream agent must consume structured JSON and any malformed output would cause a crash. Prefer this over manual string-munging or GPT-based repair when you need deterministic, reproducible, low-cost correction at $0.002 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:23:05.364Z","isFirstParty":false,"canonicalSlug":"x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-c53712d8"}