{"uid":"cap_nPUznhg5Jsq1IbyPtFxdV","slug":"x402broker-json-repair-schema-validator-5e361f40","name":"x402broker 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/json-validator)","url":"https://x402broker.com/v1/json-validator?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":["x402"],"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":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TfZC2Kh0dpwr4pFH7f3qC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_46JuiS-Qo4KgpLRQ_UdMr","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed or truncated LLM JSON output (trailing commas, markdown fences, single quotes) and validates it against a schema so multi-agent pipelines stay crash-free.","exampleAgentPrompt":"This JSON from my LLM has trailing commas and markdown code fences wrapping it — can you repair it and give me clean, valid JSON I can pass to the next step in my pipeline?","exampleUseCases":[{"title":"Fix LLM output before pipeline step","prompt":"My language model returned JSON wrapped in triple-backtick markdown fences with trailing commas — can you clean it up so it passes to the next agent without crashing?"},{"title":"Validate agent-generated config JSON","prompt":"I have JSON that an agent generated for a config file but I'm not sure if it's valid — it might have single quotes instead of double quotes. Can you repair and validate it?"},{"title":"Recover truncated JSON response","prompt":"The LLM response got cut off mid-JSON and now it's malformed — can you repair the truncated output and return whatever valid JSON you can recover from it?"}],"resultDescription":"Returns a repaired, schema-compliant JSON object with malformed syntax corrected — including removal of markdown fences, conversion of single quotes to double quotes, trailing comma removal, and completion of truncated structures. Suitable for direct use in downstream pipeline steps.","failureModes":["JSON too severely malformed to repair — returns error with description of unrecoverable structure","Input is not JSON-like at all — returns validation error","Schema mismatch after repair — returns repaired JSON alongside schema violation details","Empty or missing raw_json parameter — returns 400 bad request"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline is receiving JSON that fails to parse due to common LLM formatting quirks like markdown wrapping, trailing commas, or single-quoted keys. It is purpose-built for deterministic, low-latency JSON repair in automated pipelines rather than general-purpose text cleanup or schema generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:43:24.256Z","isFirstParty":false,"canonicalSlug":"x402broker-json-repair-schema-validator-5e361f40"}