{"uid":"cap_u1yd8do3BnITb5Cb4Rrxx","slug":"company-enrich-agentdiet-dev-deterministic-a2a-broken-json-repair-4ab7580c","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-normalizer)","url":"https://company-enrich.agentdiet.dev/v1/json-normalizer?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_aprpdg8oJglTMn2snObD8","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 truncated or malformed LLM-generated JSON (trailing commas, markdown fences, single quotes) into valid, parseable JSON for use in multi-agent pipelines.","exampleAgentPrompt":"The LLM just returned this broken JSON with trailing commas and markdown fences — can you clean it up and give me valid JSON I can parse? Here's the raw string: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output before downstream tool","prompt":"My language model returned this malformed JSON with a trailing comma and it's crashing my pipeline — please repair it: `{\"status\": \"ok\", \"data\": [1, 2, 3,]}`"},{"title":"Strip markdown fences from agent response","prompt":"The agent wrapped its JSON in triple backticks and my parser is choking on it. Can you strip the markdown fences and return clean JSON? Here's the raw string: ```json\n{\"result\": true}\n```"},{"title":"Recover truncated JSON from long LLM output","prompt":"My LLM got cut off mid-response and the JSON is truncated — something like `{\"items\": [{\"id\": 1, \"name\": \"foo\"`. Can you repair and complete it so I can use it?"}],"resultDescription":"Returns a repaired, valid JSON object with the corrected structure, free of trailing commas, markdown fences, single quotes, or truncation artifacts, ready for programmatic parsing in downstream agent workflows.","failureModes":["Input JSON is too severely truncated or corrupted to deterministically repair — returns error or best-effort partial output","Input string is not JSON-like at all (e.g. plain prose) — may return an error or empty result","Ambiguous repair paths where multiple valid completions exist — deterministic logic picks one but may not match original intent","Minlength=1 not met — returns 400/validation error","Rate limit or payment failure — returns 402 or 429"],"whenToPreferThis":"Choose this endpoint when an AI agent or LLM pipeline receives malformed, truncated, or markdown-wrapped JSON that must be repaired deterministically before further processing. Ideal for multi-agent orchestration layers, LLM output post-processing, and any workflow where JSON validity is a hard requirement. Prefer this over custom regex heuristics or model-based repair when you need deterministic, consistent output without additional LLM inference cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:21:29.938Z","isFirstParty":false,"canonicalSlug":"company-enrich-agentdiet-dev-deterministic-a2a-broken-json-repair-7510e5c1"}