{"uid":"cap_Mz1174xfUYCBXdpOr8Nuq","slug":"defi-yield-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-8d681b23","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-normalizer)","url":"https://defi-yield.agentdiet.dev/v1/json-normalizer?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_JXwiRV4VSZFYJAUCipfLM","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 JSON so multi-agent pipelines don't crash","exampleAgentPrompt":"This LLM output came back as broken JSON with trailing commas and markdown fences — can you repair it so I can parse it: ```{\"name\": \"Alice\", \"score\": 42,}```?","exampleUseCases":[{"title":"Fix LLM pipeline JSON crash","prompt":"My agent pipeline keeps crashing because the language model returns JSON with trailing commas and single quotes — can you clean up this broken output so it parses correctly: {name: 'Bob', score: 95,}?"},{"title":"Strip markdown fences from JSON","prompt":"The model wrapped its response in markdown code fences like ```json ... ``` and now my parser chokes — can you strip those out and give me clean valid JSON from this: ```json\n{\"result\": \"ok\", \"count\": 3}\n```?"},{"title":"Recover truncated JSON response","prompt":"My LLM response got cut off mid-JSON and I need whatever I can recover from this truncated string — can you repair it: {\"users\": [{\"id\": 1, \"name\": \"Alice\"}, {\"id\": 2, \"name\"?"}],"resultDescription":"Returns a JSON object containing the repaired and normalized JSON, with malformed syntax (trailing commas, markdown fences, single quotes, truncation) corrected into valid, parseable JSON.","failureModes":["Input JSON is too severely malformed or truncated to deterministically repair — returns error or best-effort partial result","raw_json parameter missing or empty — returns 400 validation error","Input that is not JSON at all (plain text, binary) — may return unparseable output","Extremely long truncated strings may exceed processing limits"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline receives JSON outputs that have common LLM-induced syntax errors such as trailing commas, markdown code fences, single-quoted keys/values, or mid-stream truncation, and you need a deterministic (not probabilistic) repair rather than re-prompting the LLM. Prefer this over manual parsing hacks or retrying the LLM when reliability and cost matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:25:59.956Z","isFirstParty":false,"canonicalSlug":"defi-yield-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ff23e186"}