{"uid":"cap_BDJvH6lxtfJSkrigLNf02","slug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-cc420186","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/.well-known/agent-card.json)","url":"https://json-repair.agentdiet.dev/.well-known/agent-card.json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["raw_json"],"properties":{"limit":{"type":"integer","default":20,"maximum":100,"minimum":1,"description":"Maximum number of items to return per page (1-100)"},"cursor":{"type":"string","description":"Opaque pagination cursor for fetching the next page"},"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.002000","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.002000/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002000","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002000","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JAglVcq-ESCiRRRDYkQsl","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002000","costPer":"request","priority":0,"asset":null,"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":"Deterministically repairs malformed, truncated, or markdown-wrapped JSON strings from LLM outputs so multi-agent pipelines never crash on bad JSON.","exampleAgentPrompt":"This JSON from the LLM response is broken — it has trailing commas, markdown fences, and single quotes instead of double quotes. Can you repair it so I can use it in my pipeline? Here's the raw string: ```{'name': 'Alice', 'age': 30,}```","exampleUseCases":[{"title":"LLM output sanitization in agent pipeline","prompt":"The LLM just returned this JSON with a trailing comma and markdown code fences and my pipeline is crashing — can you fix it so it parses cleanly? Here's the raw output: ```json\n{\"model\": \"gpt-4\", \"tokens\": 512,}\n```"},{"title":"Recovering truncated streaming JSON","prompt":"My streaming LLM response got cut off mid-JSON and now I have an incomplete object like {\"results\": [{\"id\": 1, \"value\": \"foo\" — can you repair it into valid parseable JSON?"},{"title":"Fixing single-quoted JSON from legacy agent","prompt":"An older agent in my system is outputting JSON with single quotes instead of double quotes, like {'status': 'ok', 'count': 42} — can you convert and repair it into proper valid JSON so my downstream tools can read it?"}],"resultDescription":"A repaired, syntactically valid JSON object or string with trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncations closed — ready for downstream parsing and consumption by agent pipelines.","failureModes":["Input is so severely malformed that deterministic repair is impossible — returns error or best-effort partial result","raw_json field is empty or missing — returns 400 validation error","Input is already valid JSON — returns it unchanged (no-op)","Extremely large or deeply nested JSON may hit processing limits"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM or tool that is syntactically invalid due to truncation, trailing commas, markdown fences, or single-quote usage, and you need a deterministic (not AI-based) fix that is predictable and safe to use in automated workflows. Prefer this over asking an LLM to re-generate the JSON when you need guaranteed determinism and low latency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T00:31:26.937Z","isFirstParty":false,"canonicalSlug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-e921208f"}