{"uid":"cap_mpqIMBrZXv1CTSeZSs2a4","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-2ac9b7fd","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-validator)","url":"https://domain-osint.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_qH2WD1apYSVhLHzBTpzOd","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 malformed, truncated, or markdown-wrapped JSON strings from LLM outputs so multi-agent pipelines can process them without crashing.","exampleAgentPrompt":"The LLM just returned this JSON but it has trailing commas and markdown fences around it — can you run it through the JSON repair service to clean it up so I can pass it to the next step? Here's the raw output: ```{\"name\": \"Alice\", \"score\": 42,}```","exampleUseCases":[{"title":"Fixing LLM pipeline JSON crashes","prompt":"My agent pipeline keeps crashing because the LLM keeps returning JSON with trailing commas — can you repair this broken JSON so the next step can parse it? Here's the raw string: `{\"items\": [\"a\", \"b\",], \"count\": 2,}`"},{"title":"Stripping markdown fences from JSON","prompt":"The model wrapped its JSON response in triple backticks again and now my parser is failing — please fix this string and give me clean parseable JSON: ```json\n{\"status\": \"ok\", \"value\": 99}\n```"},{"title":"Repairing single-quoted JSON from agent output","prompt":"This JSON came back with single quotes instead of double quotes and my downstream tool won't accept it — can you repair it? The raw string is: `{'user': 'bob', 'active': true}`"}],"resultDescription":"A JSON object containing the repaired, valid JSON that was derived from the malformed input string, ready to be parsed and passed to downstream pipeline steps.","failureModes":["Input JSON is too severely truncated or corrupted to deterministically repair — returns an error or best-effort partial result","Input string is empty or missing — returns a validation error","Ambiguous structure makes deterministic repair impossible — may return an error indicating the extent of damage","Payment not fulfilled via x402 — returns HTTP 402 before processing"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair for LLM outputs with common corruption patterns (trailing commas, markdown fences, single quotes, truncation) in a multi-agent or MCP pipeline context. Prefer it over ad-hoc LLM re-prompting when you need reliable, fast, low-cost repair without consuming additional inference tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:51:29.038Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}