{"uid":"cap_pK2Tf8D32Xwgr-qckiUWm","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-e9353b24","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":"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_OTFsp6lckKT4ArHUS9rcJ","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":"The LLM just returned this broken JSON with trailing commas and markdown code fences — can you repair it so the pipeline doesn't crash? Here's the raw output: ```json {\"name\": \"Alice\", \"score\": 42, } ```","exampleUseCases":[{"title":"Fix LLM JSON before downstream processing","prompt":"My AI model returned this JSON but it has trailing commas and single quotes instead of double quotes — repair it so I can pass it to the next step: {'user': 'Bob', 'items': ['a', 'b',],}"},{"title":"Strip markdown fences from agent response","prompt":"The LLM wrapped its JSON in triple-backtick markdown fences and now my parser is crashing — clean this up and give me valid JSON: ```json\n{\"status\": \"ok\", \"count\": 5}\n```"},{"title":"Rescue truncated JSON mid-pipeline","prompt":"My agent pipeline received a truncated JSON string that cuts off mid-object and is causing errors — can you repair this so the workflow continues? Here's what I got: {\"id\": 1234, \"name\": \"report\", \"data\": [1, 2"}],"resultDescription":"A JSON object containing the repaired, valid JSON output along with validation status, indicating whether the input was successfully parsed and corrected from its malformed state.","failureModes":["Input is so severely malformed that deterministic repair is impossible — returns error with description of unrecoverable syntax issue","Empty or null raw_json input — returns validation error for missing required field","Input contains non-JSON content (e.g. plain prose) — repair may fail or return unexpected structure","Extremely large payloads may hit size limits — returns payload too large error"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that may contain common syntax errors like trailing commas, markdown code fences, single quotes, or truncation artifacts. It is ideal for agent orchestration layers that need a deterministic, rule-based repair step rather than asking another LLM to fix the output. Prefer it over manual parsing or regex hacks when you need reliable, idempotent JSON normalization at low cost per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:40:26.495Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}