{"uid":"cap_rWiW3e0jfEtb9iiUG-39E","slug":"onchain-risk-agentdiet-dev-deterministic-a2a-broken-json-repair-b043b4ef","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://onchain-risk.agentdiet.dev/v1/json-validator)","url":"https://onchain-risk.agentdiet.dev/v1/json-validator?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_WCOVwfgMFKRmr2rVoxHzp","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"onchain-risk.agentdiet.dev","brandSlug":"onchain-risk-agentdiet-dev-mpp","brandBaseUrl":"https://onchain-risk.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash on bad JSON.","exampleAgentPrompt":"This JSON from my LLM keeps crashing my pipeline — can you repair it? Here it is: ```{name: 'Alice', age: 30, hobbies: ['reading', 'coding',}```","exampleUseCases":[{"title":"LLM output JSON crash prevention","prompt":"My language model returned this broken JSON and my app crashed — fix it for me: {\"user\":\"bob\",\"score\":42,\"tags\":[\"ai\",\"ml\",]}"},{"title":"Markdown-wrapped JSON cleanup","prompt":"The AI wrapped its response in a markdown code block and now I can't parse it — strip the fences and fix this: ```json\n{\"status\": 'ok', \"count\": 5}\n```"},{"title":"Multi-agent pipeline JSON repair","prompt":"One of my agents produced a truncated JSON object and the next step in my workflow is failing — can you deterministically repair this string so I can keep the pipeline running: {\"id\":123,\"name\":\"product\",\"details\":{\"price\":9.99"}],"resultDescription":"Returns a repaired, valid JSON object with the malformed input corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncation patched where possible, enabling downstream parsing without crashes.","failureModes":["Input is so severely malformed that deterministic repair is impossible — returns error with explanation","JSON is beyond repair due to missing structural context from truncation","Network or payment (x402) errors if the $0.002 micropayment is not completed","Empty raw_json input rejected with validation error"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic (non-AI) JSON fixer specifically for LLM-generated or pipeline-produced broken JSON. It is ideal for multi-agent workflows where reliability and consistency matter more than probabilistic correction, and when you cannot afford to have downstream agents crash on malformed JSON inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:26:01.709Z","isFirstParty":false,"canonicalSlug":"onchain-risk-agentdiet-dev-deterministic-a2a-broken-json-repair-2ee0e1c0"}