{"uid":"cap_rl24P4eOhzkyiuIwdxkiE","slug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-758a9f35","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://github-audit.agentdiet.dev/v1/json-fix)","url":"https://github-audit.agentdiet.dev/v1/json-fix?utm_source=zero.xyz","method":"POST","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_wFBpy3IXSMK6I-HvPbKc0","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"github-audit.agentdiet.dev","brandSlug":"github-audit-agentdiet-dev-mpp","brandBaseUrl":"https://github-audit.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 response I just got back has trailing commas, markdown code fences, and single quotes — it's not valid JSON. Can you run it through the JSON repair service and give me back a clean, parseable object?","exampleUseCases":[{"title":"Fix LLM pipeline JSON crash","prompt":"My agent just returned a response that's wrapped in ```json markdown fences and has trailing commas — it's breaking my downstream pipeline. Can you repair it into valid JSON so processing can continue?"},{"title":"Sanitize single-quoted JSON from AI","prompt":"The model output I got uses single quotes instead of double quotes and has a missing closing bracket. Please fix it into proper JSON I can actually parse."},{"title":"Recover truncated JSON from streaming response","prompt":"I got a truncated JSON response from my streaming LLM call — it just cuts off mid-object. Can you repair it and give me back the most complete valid JSON you can reconstruct from it?"}],"resultDescription":"A repaired, valid JSON object derived from the malformed input. The response contains the corrected JSON with markdown fences removed, trailing commas stripped, single quotes converted to double quotes, and truncated structures closed — ready for downstream parsing by any agent or pipeline.","failureModes":["Input too severely truncated or garbled to reconstruct valid JSON — returns error or best-effort partial object","Input is not JSON at all (e.g. plain prose) — may return error or empty object","Network/payment issues causing 402 or timeout","Ambiguous repair decisions where multiple valid interpretations exist — picks one deterministically but may not match original intent"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that fails to parse due to common formatting errors like markdown code fences, trailing commas, single quotes, or truncation. It is deterministic (not AI-based), making it predictable and auditable for production pipelines. Prefer it over custom regex-based repair logic when you need a reliable, hosted microservice that handles the full range of common LLM JSON malformations in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:31:49.329Z","isFirstParty":false,"canonicalSlug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-cc0bdacf"}