{"uid":"cap_gtG20GU9rxRVd5TNnKUv9","slug":"defi-yield-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-cd7f3aba","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/json-fix)","url":"https://defi-yield.agentdiet.dev/v1/json-fix?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__rV3f3ZqEwoqGqNGIaJfX","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) so multi-agent pipelines never crash","exampleAgentPrompt":"This JSON string from the LLM output is broken — it has trailing commas and markdown fences wrapping it. Can you clean and repair it so it parses correctly: ```{\"name\": \"Alice\", \"score\": 42,}```?","exampleUseCases":[{"title":"Fix LLM output before downstream agent","prompt":"The language model just returned this JSON with trailing commas and it's crashing my pipeline: {\"items\": [1, 2, 3,], \"status\": \"ok\",} — can you repair it so it's valid JSON?"},{"title":"Strip markdown fences from agent response","prompt":"My agent returned JSON wrapped in triple backticks like ```json {\"result\": true} ``` and my parser can't handle it — please clean that up and give me the raw valid JSON."},{"title":"Repair single-quoted JSON from scraper","prompt":"I've got this JSON-like string using single quotes instead of double quotes: {'user': 'bob', 'active': true} — can you convert it to properly formatted valid JSON?"}],"resultDescription":"A repaired, valid JSON object that has been cleaned of common malformations including trailing commas, markdown code fences, single quotes instead of double quotes, and truncation issues — ready for programmatic parsing without errors.","failureModes":["Input is so severely malformed that deterministic repair is impossible, returning an error or best-effort partial result","Empty or whitespace-only raw_json input rejected with validation error","Input that is not JSON-like at all (e.g. plain prose) may produce unexpected output","Very large or deeply nested truncated JSON may have ambiguous repair outcomes"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM or scraper that fails to parse due to common syntax issues like trailing commas, markdown fences, or single quotes. It is deterministic (not generative), making it reliable for automated pipelines where consistency matters. Prefer it over writing custom regex-based fixers when you need a hosted, pay-per-call solution compatible with x402/MCP agent infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:41:56.058Z","isFirstParty":false,"canonicalSlug":"defi-yield-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ff23e186"}