{"uid":"cap__wxu14dRCRTXb-Icl7PzG","slug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-b273fdf2","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":"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_L9TOZGSBFIMYNwm0DBZZF","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-generated JSON (trailing commas, markdown fences, single quotes) to prevent multi-agent pipeline crashes","exampleAgentPrompt":"This JSON string came back from my LLM and it's breaking my pipeline — it has trailing commas and markdown code fences around it. Can you repair it so it's valid JSON I can actually parse?","exampleUseCases":[{"title":"LLM output pipeline repair","prompt":"My language model returned this JSON but it has trailing commas and single quotes instead of double quotes, and it's wrapped in a markdown code block — can you fix it so my downstream agent can parse it without crashing?"},{"title":"Multi-agent data handoff sanitization","prompt":"Before I pass this JSON payload from Agent A to Agent B, can you clean it up? It looks truncated and has some syntax issues that will break the receiving agent."},{"title":"Automated JSON validation in CI workflow","prompt":"I need to validate and repair this JSON string that came out of my automated agent run — it might have formatting issues or be cut off. Fix whatever's wrong so it conforms to valid JSON."}],"resultDescription":"Returns a repaired, syntactically valid JSON object with malformed elements corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed — ready for use in downstream agent or pipeline steps.","failureModes":["Input JSON is so severely malformed it cannot be deterministically repaired — returns error","Input string is not JSON at all (e.g. plain text or binary) — validation fails","Truncation is too severe to infer intended structure — ambiguous repair result","Payment not processed via x402 — 402 response returned before repair attempt"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that may contain common syntax errors like trailing commas, markdown code fences, or single quotes, and you need a deterministic (non-AI, non-probabilistic) repair rather than asking another LLM to fix it. Particularly valuable in production pipelines where reliability and predictability matter more than creative reconstruction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:46:28.661Z","isFirstParty":false,"canonicalSlug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-cc0bdacf"}