{"uid":"cap_vFdL9PnwUUN6CZkj59KzR","slug":"defi-yield-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ceac33df","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://defi-yield.agentdiet.dev/v1/llm-json-schema-healer)","url":"https://defi-yield.agentdiet.dev/v1/llm-json-schema-healer?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_eP326BjsRFXe94mdoguXh","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"defi-yield.agentdiet.dev","brandSlug":"defi-yield-agentdiet-dev-mpp","brandBaseUrl":"https://defi-yield.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) into valid, parseable JSON for use in multi-agent pipelines","exampleAgentPrompt":"This JSON output from my LLM is broken — it has trailing commas, markdown fences, and single quotes — can you repair it into valid parseable JSON? Here's the raw string: ```{name: 'Alice', score: 42,}```","exampleUseCases":[{"title":"Fix LLM output in agent pipeline","prompt":"My language model just returned this JSON but it has trailing commas and markdown code fences around it — can you clean it up so my pipeline doesn't crash? Here it is: ```json\n{\"name\": \"Bob\", \"age\": 30,}\n```"},{"title":"Repair single-quoted JSON from chatbot","prompt":"This chatbot output uses single quotes instead of double quotes and it's breaking my JSON parser — can you convert it to valid JSON? The string is: {name: 'Charlie', active: true, tags: ['a', 'b',]}"},{"title":"Recover truncated JSON from partial LLM response","prompt":"The LLM cut off mid-response and I got truncated JSON that won't parse — can you deterministically repair it and return a valid JSON object? Here's what I got: {\"items\": [{\"id\": 1, \"val\": \"foo\"}, {\"id\": 2"}],"resultDescription":"A repaired, valid JSON object that has had common LLM output issues corrected — including trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed — returned as a parseable JSON response.","failureModes":["Input JSON is so severely malformed it cannot be deterministically repaired — returns error","Empty raw_json parameter — returns validation error","Input is not JSON at all (e.g. plain prose) — may return an error or unexpected output","Payment failure via x402 — returns HTTP 402 before processing","Network timeout for very large JSON inputs"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline produces JSON outputs that fail to parse due to common LLM formatting errors like trailing commas, markdown code fences, single quotes, or truncation. Ideal for deterministic (non-probabilistic) repair rather than asking another LLM to rewrite the JSON, which may alter values. Best suited for automated pipelines where reliability and consistency matter more than creative reinterpretation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:51:22.527Z","isFirstParty":false,"canonicalSlug":"defi-yield-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ff23e186"}