{"uid":"cap_1bEYWwcTcQTbKj8nMKZBf","slug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-931fa536","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/paid)","url":"https://json-repair.agentdiet.dev/paid?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_MtHhbc7gXZB83IVlHTbGA","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":"The LLM just returned this broken JSON with trailing commas and markdown fences — can you repair it so I can pass it to the next step: ```{\"name\": \"Alice\", \"age\": 30,}```?","exampleUseCases":[{"title":"Fixing LLM output in agent pipeline","prompt":"My language model returned this JSON but it has a trailing comma and single quotes instead of double quotes — fix it so the next agent in my pipeline doesn't crash: {'user': 'bob', 'score': 42,}"},{"title":"Stripping markdown fences from JSON response","prompt":"The AI wrapped its JSON answer in markdown code fences like ```json ... ``` and now my parser is failing — can you strip the fences and give me clean, valid JSON?"},{"title":"Recovering truncated JSON from streaming response","prompt":"I got a truncated JSON response from a streaming LLM call that cut off mid-string — here it is: {\"items\": [\"apple\", \"banana\", \"che — can you repair it into valid JSON?"}],"resultDescription":"A repaired, valid JSON object reconstructed from the malformed input, with issues like trailing commas, markdown fences, single quotes, and truncation resolved deterministically","failureModes":["Input is so severely malformed that no valid JSON structure can be inferred — returns error or best-effort partial object","Input is empty or whitespace — validation fails with missing required field error","JSON is deeply nested and truncated — repair may make assumptions about missing closing brackets that differ from original intent","Payment not completed via x402 — returns HTTP 402 requiring payment before processing"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM and needs deterministic, rule-based repair (not probabilistic rewriting) before passing it downstream. Ideal when you need to handle common LLM formatting artifacts like trailing commas, markdown code fences, and single quotes in a predictable, non-lossy way. Prefer this over custom parsing logic when you need a reliable, pay-per-call hosted solution without managing your own JSON repair library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:23:30.141Z","isFirstParty":false,"canonicalSlug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-e921208f"}