{"uid":"cap_h8TpUpyv8exjr5XORr2Dx","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-6aab3ed5","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://domain-osint.agentdiet.dev/v1/json-repair)","url":"https://domain-osint.agentdiet.dev/v1/json-repair?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_5JcNP7Q-dtiKCMNXUhb5f","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"domain-osint.agentdiet.dev","brandSlug":"domain-osint-agentdiet-dev-mpp","brandBaseUrl":"https://domain-osint.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 is broken — it has trailing commas and markdown fences wrapping it — can you repair it so it parses correctly: ```{\"name\": \"Alice\", \"age\": 30,}```?","exampleUseCases":[{"title":"LLM pipeline JSON crash prevention","prompt":"The language model just returned this malformed JSON with a trailing comma and I need it fixed before it crashes my pipeline: {\"status\": \"ok\", \"items\": [1, 2, 3,]}"},{"title":"Markdown-wrapped agent response cleanup","prompt":"My agent returned JSON wrapped in markdown code fences and it won't parse — strip the fences and fix it for me: ```json\n{\"user\": 'bob', \"score\": 99}\n```"},{"title":"Recovering truncated LLM JSON output","prompt":"The LLM got cut off mid-response and gave me this truncated JSON — see if you can repair it into something valid: {\"results\": [{\"id\": 1, \"name\": \"foo\"}, {\"id\": 2"}],"resultDescription":"A JSON object containing the repaired, syntactically valid JSON, recovered from the malformed input string — ready for downstream parsing and processing in agent pipelines.","failureModes":["Input is too severely corrupted to deterministically repair — returns error indicating unrecoverable JSON","Input string is empty or missing — returns 400-level validation error","JSON is so ambiguous that deterministic repair is not possible without semantic inference — may return partial result or error"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline or LLM workflow produces malformed, truncated, or markdown-wrapped JSON that needs deterministic (rule-based, not AI-guessed) repair before downstream processing. Ideal for production pipelines where reliability and idempotency are critical and you need consistent fix behavior across retries via Idempotency-Key headers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:32:33.602Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}