{"uid":"cap_dusr5G7mgPlekrLJd8Ybd","slug":"company-enrich-agentdiet-dev-deterministic-a2a-broken-json-repair-fda7850e","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://company-enrich.agentdiet.dev/v1/json-validator)","url":"https://company-enrich.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_mcHs6FVH9gungZuGMUfe7","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"company-enrich.agentdiet.dev","brandSlug":"company-enrich-agentdiet-dev-mpp","brandBaseUrl":"https://company-enrich.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs malformed, truncated, or markdown-wrapped JSON outputs from LLMs so multi-agent pipelines can process them without crashing.","exampleAgentPrompt":"My LLM just returned this JSON with trailing commas and markdown fences around it — can you repair it so it parses correctly: ```{\"name\": \"Acme\", \"revenue\": 500000,}```?","exampleUseCases":[{"title":"LLM pipeline JSON crash prevention","prompt":"The language model in my pipeline returned malformed JSON with a trailing comma and a missing closing brace — can you fix this so it doesn't break the next step: {\"company\": \"TechCorp\", \"founded\": 2010,"},{"title":"Markdown-fenced JSON cleanup","prompt":"My AI assistant wrapped its JSON response in triple backticks and added a language tag. Can you strip the markdown fences and give me clean, parseable JSON from this: ```json\n{\"user\": \"alice\", 'score': 42}\n```"},{"title":"Agent-to-agent data handoff repair","prompt":"Before I pass this output from agent A to agent B, I need to make sure the JSON is valid — it has single quotes instead of double quotes and seems truncated. Can you repair it: {'id': 123, 'status': 'active'"}],"resultDescription":"Returns a repaired, valid JSON object with the syntax errors corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed — ready to be parsed by downstream pipeline steps.","failureModes":["JSON too severely malformed to deterministically repair — returns an error indicating the string cannot be salvaged","Empty or whitespace-only input — returns a validation error for missing raw_json","Non-JSON content passed (e.g. plain text or XML) — may return an error or unexpected output","Extremely long truncated strings where the intended structure is ambiguous — repair may be incorrect"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that is syntactically broken (trailing commas, markdown wrappers, single quotes, truncation) and you need a fast, deterministic fix before passing data to the next agent or tool. It is ideal for automated pipelines where manual intervention is not feasible and reliability is critical. Prefer it over ad-hoc regex fixes or LLM-based re-prompting when you need a consistent, low-latency, rule-based repair.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:45:44.750Z","isFirstParty":false,"canonicalSlug":"company-enrich-agentdiet-dev-deterministic-a2a-broken-json-repair-7510e5c1"}