{"uid":"cap_sYTkOtVNM9rPT5S1Th3Vu","slug":"domain-osint-agentdiet-dev-llm-json-repair-schema-validator-544eecc4","name":"LLM 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/llm-json-schema-healer)","url":"https://domain-osint.agentdiet.dev/v1/llm-json-schema-healer?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_ea9Xr1WnV7bVPb7l6uuTe","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":"Deterministically repairs malformed, truncated, or markdown-wrapped JSON from LLM outputs so multi-agent pipelines can continue without crashing.","exampleAgentPrompt":"This JSON string came back from my LLM and it has trailing commas and markdown fences making it unparseable — can you repair it so it's valid JSON I can use? Here it is: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Pipeline crash prevention for LLM agents","prompt":"My AI agent just returned this broken JSON with unclosed brackets and single quotes — fix it so my next pipeline step doesn't crash: {\"user\": 'Bob', \"score\": 42"},{"title":"Stripping markdown fences from LLM responses","prompt":"The model wrapped its JSON output in triple backtick markdown fences again and now my parser is failing — can you strip the fences and return clean valid JSON? Here's what I got: ```json\n{\"status\": \"ok\", \"value\": 99}\n```"},{"title":"Repairing truncated JSON from token-limited output","prompt":"My LLM hit its token limit mid-response and the JSON got cut off partway through — repair this truncated JSON and close it properly so it's parseable: {\"items\": [{\"id\": 1, \"name\": \"widget\""}],"resultDescription":"Returns a repaired, valid JSON object with syntax errors corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed — ready for downstream parsing and processing.","failureModes":["Input is so severely malformed it cannot be deterministically repaired, returning an error or best-effort partial output","Very long truncated JSON may have ambiguous closure, leading to incorrect structural assumptions","Non-JSON content passed as raw_json may return an error or unpredictable output","Payment failure (HTTP 402) if x402 micropayment is not properly attached"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline receives JSON that fails to parse due to common LLM output artifacts such as trailing commas, markdown code fences, single quotes, or truncation. It is specifically designed for deterministic repair rather than probabilistic LLM-based correction, making it reliable and auditable for automated pipelines where consistency matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:23:38.997Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-llm-json-repair-schema-validator-544eecc4"}