{"uid":"cap_5K276b57ASMf77ONdzzP4","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-ba4319b5","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-fix)","url":"https://domain-osint.agentdiet.dev/v1/json-fix?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_17QK5yKFR8zQYajAWN7S8","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 clean it up and return valid JSON? Here it is: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output before downstream parsing","prompt":"The language model just returned this JSON blob with a trailing comma and it's crashing my pipeline — can you repair it so I can continue processing? Here's the broken string: {\"status\": \"ok\", \"items\": [1, 2, 3,]}"},{"title":"Strip markdown fences from agent response","prompt":"My agent wrapped its JSON output in triple-backtick markdown fences and now my parser is failing — can you strip those out and give me clean, valid JSON? The raw output is: ```json\n{\"result\": \"success\", \"count\": 5}\n```"},{"title":"Repair single-quoted JSON from scraper","prompt":"I got this JSON-like string from a web scraper that used single quotes instead of double quotes, and it won't parse — can you fix it to proper JSON? Here it is: {'user': 'bob', 'score': 42}"}],"resultDescription":"A repaired, valid JSON object that has been sanitized of common LLM output defects including trailing commas, markdown code fences, single-quoted keys/values, and truncation issues — ready for programmatic consumption in downstream pipeline stages.","failureModes":["Input JSON is so severely malformed that deterministic repair is impossible — returns error indicating unrecoverable structure","Empty or null raw_json input — returns validation error","Input is not JSON at all (e.g. plain prose) — may return error or unexpected output","Extremely large truncated JSON where missing context cannot be inferred — partial repair with warning"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM or scraper that fails standard JSON.parse() due to common fixable defects like trailing commas, markdown fences, or single quotes. It is preferable to writing custom regex-based sanitization logic, and especially useful when you need deterministic (not AI-based) repair that won't hallucinate or alter your data semantics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:51.668Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}