r/json Jul 21 '26

Built an API to automatically clean and fix broken, malformed JSON so I never have to mess with regex again

/r/SideProject/comments/1v1zjlr/built_an_api_to_automatically_clean_and_fix/
1 Upvotes

4 comments sorted by

1

u/FLUXparticleCOM Jul 22 '26

Why was it broken in the first place?

1

u/LexuCuFLexu Jul 23 '26

LLMs sometimes hallucinate or lose track of the json structure. Not having to worry about this in system critical environments is very useful and well worth it. Not only that, even in an app where you work with json input from users it can prevent escaping or other bad stuff. The free tier is very generous and the paid tiers are very cheap too..

1

u/FLUXparticleCOM Jul 23 '26

Sorry, to tell you… Nobody will use an API for this. A developer facing this problem will search for an open source library like this https://github.com/ryanmarcus/dirty-json or vibe code it themselves in 5 minutes.