{"uid":"cap_7reWaFsYjDaOA5gr_DmQx","slug":"x402broker-json-normalizer-8aae45eb","name":"x402broker JSON Normalizer","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-normalizer)","url":"https://x402broker.com/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":["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_ztKr3HYFfMsAypMYPbJFJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_u0MHW49t6JSc-OeFvaFLy","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-generated JSON (trailing commas, markdown fences, single quotes) into valid, parseable JSON for multi-agent pipelines.","exampleAgentPrompt":"This JSON came back from an LLM and it has trailing commas, single quotes, and a markdown code fence — can you run it through the JSON normalizer to fix it so my pipeline can parse it? Here's the raw string: {\"name\": 'Alice', \"scores\": [1, 2, 3,], }","exampleUseCases":[{"title":"Multi-agent pipeline crash prevention","prompt":"My agent pipeline keeps crashing because the upstream LLM returns JSON with trailing commas and sometimes wraps it in ```json fences — can you repair this raw output so I can safely parse it: {\"result\": 'success', \"items\": [\"a\", \"b\",]}"},{"title":"LLM structured output sanitization","prompt":"I'm using an LLM to generate structured data but it keeps outputting single-quoted strings and malformed JSON. Can you normalize this broken JSON into valid RFC-compliant JSON: {'user': 'bob', 'score': 42, 'tags': ['x', 'y',]}"},{"title":"Automated JSON repair before database insert","prompt":"Before I insert this LLM-generated record into my database, I need to make sure the JSON is valid — it looks truncated and has a markdown fence around it. Can you clean it up and give me a properly formatted JSON object?"}],"resultDescription":"Returns the repaired, valid JSON object with all common LLM formatting errors corrected: trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed. Output is a parseable, schema-compliant JSON payload.","failureModes":["Input JSON too severely malformed to repair deterministically","Ambiguous structure where multiple valid repairs exist","Empty or null input string","Input exceeds token/size limits","Network timeout or service unavailability"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from LLMs that frequently produces non-standard formatting errors like trailing commas, markdown wrappers, or single quotes. Ideal for automated pipelines where manual JSON fixing is not feasible and crashes must be avoided. Prefer over generic JSON linters when you specifically need LLM-output-aware heuristic repair rather than just schema validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:21.777Z","isFirstParty":false,"canonicalSlug":"x402broker-json-normalizer-8aae45eb"}