{"uid":"cap_gTe00E66LcYbmzctd1EnM","slug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-247d7c2c","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_DAyv8rSj7o4-NBzvrbjuR","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 came back from the LLM but it has trailing commas and is wrapped in markdown fences — can you repair it so it's valid JSON I can actually parse: ```json {\"name\": \"Alice\", \"age\": 30,} ```","exampleUseCases":[{"title":"Fix LLM JSON before database insert","prompt":"The structured extraction step returned this JSON but it has a trailing comma and single quotes — clean it up so I can insert it into the database: {'user': 'bob', 'score': 42,}"},{"title":"Repair truncated agent response payload","prompt":"My agent pipeline got a truncated JSON back from the model — it looks like it got cut off mid-object. Can you repair this and return a valid JSON object: {\"items\": [{\"id\": 1, \"name\": \"widget\""},{"title":"Strip markdown fences from code-block JSON","prompt":"The LLM wrapped its JSON output in a markdown code block and now my parser is crashing. Strip the fences and fix any syntax issues so I get clean parseable JSON: ```json\n{\"status\": \"ok\", \"results\": [1, 2, 3],}\n```"}],"resultDescription":"A repaired, syntactically valid JSON object with all malformations fixed — trailing commas removed, markdown fences stripped, single quotes normalized to double quotes, truncated structures closed, and missing delimiters added — ready for downstream parsing.","failureModes":["Input is so severely malformed that deterministic repair is impossible — returns error or best-effort partial result","Input is not JSON at all (plain text, binary) — repair may fail or return unexpected structure","Extremely long truncated JSON may have ambiguous intended structure — repair result may not match original intent","Payment failure via x402 — endpoint returns 402 before processing"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that frequently contains syntax errors like trailing commas, markdown code fences, single quotes, or truncation. It is particularly valuable in production A2A pipelines where a downstream JSON parse failure would crash the workflow. Prefer it over generic JSON parsers when you need deterministic repair logic specifically tuned for LLM output artifacts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:23:08.205Z","isFirstParty":false,"canonicalSlug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-e921208f"}