JSON-Healer: Repair and Validate Broken JSON from LLM Outputs
JSON-Healer: Repair and Validate Broken JSON from LLM Outputs
Built json-healer, a small npm package that repairs malformed or partial JSON produced by LLMs. Inspired by OpenRouter’s recently launched response healer ( https://openrouter.ai/docs/guides/features/plugins/response-... ), this implementation is model-agnostic and works with JSON from any LLM or text source, not just OpenRouter. Includes comprehensive test cases and is designed to be easy to drop into existing pipelines that rely on structured LLM output. https://www.npmjs.com/package/@freakynit/json-healer Feedback welcome!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
LLM-JSON-guard – Middleware to auto-repair broken AI outputs
Repair-JSON-stream – Fix broken JSON from LLM streaming (1.7x faster)
Repair JSON
Tools to create, manipulate and validate JSON
Athelas – Automagically Repair Broken Code
JSON.stringify (without circular deps) for AngularJS 1.x
JSON.is
Parse JSON with Flex, Bison, and Ruby
Homogenius – JSON packer/unpacker
json.is