{"uid":"cap_no0-cdwjjxv708xnX5wDd","slug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-6f577939","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://json-repair.agentdiet.dev/v1/json-normalizer)","url":"https://json-repair.agentdiet.dev/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":[],"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_iWwXNF-GotWbSooujm1vj","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"json-repair.agentdiet.dev","brandSlug":"json-repair-agentdiet-dev-mpp","brandBaseUrl":"https://json-repair.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 came back from the LLM and it's broken — has trailing commas and markdown fences around it — can you repair it so I can use it? Here it is: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output for downstream agent","prompt":"The language model just returned this mangled JSON with trailing commas and it's breaking my pipeline — please repair it so the next step can parse it: {\"result\": \"ok\", \"score\": 0.9,}"},{"title":"Strip markdown fences from model response","prompt":"My AI returned JSON wrapped in triple-backtick markdown fences and my parser is crashing — can you clean it up and give me valid JSON? Here's the raw output: ```json\n{\"status\": \"success\", \"items\": [\"a\", \"b\"]}\n```"},{"title":"Recover truncated JSON from context limit","prompt":"The model hit its token limit and returned a truncated JSON object that cuts off mid-structure — can you deterministically repair it so it's valid? Here it is: {\"user\": {\"id\": 42, \"name\": \"Bob\", \"roles\": [\"admin\""}],"resultDescription":"A repaired, well-formed JSON object that has had common LLM output defects corrected — including removal of markdown code fences, fixing trailing commas, converting single quotes to double quotes, and completing truncated structures — ready for downstream parsing or storage.","failureModes":["Input is so severely malformed that deterministic repair is impossible, returning an error response","Input string is empty or missing the required raw_json parameter, returning a 400-level error","Ambiguous structure where multiple valid repairs exist, potentially returning an unexpected but valid JSON shape","Payment not completed (x402 micropayment required), returning 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM that fails standard JSON.parse() due to common LLM artifacts like trailing commas, markdown fences, or single quotes. Prefer it over writing custom regex fixes or using a general-purpose code execution endpoint — this is a deterministic, purpose-built repair tool with predictable output. Especially useful in automated pipelines where you cannot afford crashes from malformed model output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:25:59.129Z","isFirstParty":false,"canonicalSlug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-e921208f"}