{"uid":"cap_681G45lErlJ2K8iSJ6-DX","slug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-9559b01a","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/v1/malformed-json-healer)","url":"https://json-repair.agentdiet.dev/v1/malformed-json-healer?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_BV2iaH3QHKfZVq7PAPIkS","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 string from the LLM came back broken with trailing commas and markdown code fences — can you repair it so it's valid JSON I can parse? Here it is: ```json {\"name\": \"Alice\", \"age\": 30,} ```","exampleUseCases":[{"title":"Fix LLM output in agent pipeline","prompt":"The language model just returned this JSON with single quotes and trailing commas and my pipeline crashed — can you repair it into valid JSON? Here's the raw output: {'name': 'Bob', 'score': 95,}"},{"title":"Strip markdown fences from JSON response","prompt":"My coding agent wrapped its JSON response in triple backtick markdown fences and now my parser is failing — can you strip the fences and fix whatever else is broken in this string: ```json {\"items\": [1, 2, 3,]} ```"},{"title":"Recover truncated JSON from model timeout","prompt":"The model timed out mid-response and I got a truncated JSON that cuts off halfway through — can you repair this incomplete JSON so it's parseable: {\"results\": [{\"id\": 1, \"value\": \"hello\"}, {\"id\": 2, \"val"}],"resultDescription":"A repaired, syntactically valid JSON object derived from the malformed input, with all issues (trailing commas, markdown fences, single quotes, truncation) corrected and ready for downstream parsing","failureModes":["Input so severely malformed that deterministic repair is impossible — returns error indicating unrecoverable structure","Empty or whitespace-only input string — returns validation error","Input that is not JSON-like at all (plain text, binary) — may return error or unexpected output"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that fails to parse due to common formatting issues like trailing commas, markdown code fences, single-quoted keys/values, or truncation mid-output. Ideal for autonomous pipelines that cannot afford crashes from malformed model outputs and need a deterministic (not generative) fix. Prefer over prompt-engineering retries when latency and cost matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:36:00.434Z","isFirstParty":false,"canonicalSlug":"json-repair-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-e921208f"}