15:09
2026-10-08
dev.to
ai-tools
Your LLM returned almost-valid JSON. Stop hand-patching it.
A developer built coerce-json, a zero-dependency library that takes almost-valid LLM JSON output and coerces it to fit an existing Zod schema while reporting every change it makes. The library strips …