{"uid":"cap_I50p8zRYxx77h9EptsivK","slug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-70cb75f6","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-validator)","url":"https://github-audit.agentdiet.dev/v1/json-validator?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_040i8oOlWCrjPFYdCkbP0","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 malformed, truncated, or markdown-wrapped LLM JSON outputs so multi-agent pipelines can safely process them without crashing.","exampleAgentPrompt":"This JSON came back from another model and it won't parse — it has trailing commas and markdown fences around it. Can you fix it so it's valid JSON I can work with?","exampleUseCases":[{"title":"Fix LLM output before pipeline continues","prompt":"The language model returned this JSON but it has single quotes instead of double quotes and a trailing comma — repair it so the next step in my pipeline doesn't crash."},{"title":"Strip markdown fences from agent response","prompt":"My sub-agent wrapped its JSON output in triple-backtick markdown fences and now my parser is failing — clean it up and give me just the raw valid JSON."},{"title":"Recover truncated JSON from partial response","prompt":"The API timed out mid-response and I got a truncated JSON object that cuts off partway through — can you repair it into something valid and parseable?"}],"resultDescription":"Returns a JSON object containing the repaired, valid JSON — free of trailing commas, markdown fences, and single-quote delimiters — ready for downstream parsing and processing by agent pipelines.","failureModes":["Input is so severely malformed or incomplete that deterministic repair is impossible","raw_json field is empty or missing, returning a 400 validation error","JSON structure is ambiguous enough that repair produces an incorrect but syntactically valid result","Endpoint returns non-2xx if payment (x402) is not fulfilled"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that fails parsing due to common issues like trailing commas, markdown code fences, or single-quote delimiters. It is especially valuable in automated A2A workflows where you cannot tolerate downstream crashes from malformed model outputs and need a deterministic (not generative) fix.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:43:41.178Z","isFirstParty":false,"canonicalSlug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-cc0bdacf"}