JS

JSON-Healer: Repair and Validate Broken JSON from LLM Outputs

Hacker News

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 card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
75%75% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, open · Missing: mac, agents, macos
73%73% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
44%44% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: exist, existing, ide · Missing: https docs, excited, just released
29%29% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

LL
LLM-JSON-guard – Middleware to auto-repair broken AI outputs34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LLM-JSON-guard – Middleware to auto-repair broken AI outputs

Hacker News1
Re
Repair-JSON-stream – Fix broken JSON from LLM streaming (1.7x faster)51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Repair-JSON-stream – Fix broken JSON from LLM streaming (1.7x faster)

Hacker News1
Re
Repair JSON47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Repair JSON

Hacker News7
To
Tools to create, manipulate and validate JSON34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tools to create, manipulate and validate JSON

Hacker News3
At
Athelas – Automagically Repair Broken Code60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Athelas – Automagically Repair Broken Code

Hacker News8
JS
JSON.stringify (without circular deps) for AngularJS 1.x41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSON.stringify (without circular deps) for AngularJS 1.x

Hacker News3
JS
JSON.is47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSON.is

Hacker News100
Pa
Parse JSON with Flex, Bison, and Ruby38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Parse JSON with Flex, Bison, and Ruby

Hacker News3
Ho
Homogenius – JSON packer/unpacker47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Homogenius – JSON packer/unpacker

Hacker News1
js
json.is47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

json.is

Hacker News10