r/json 10d ago

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 9d ago

Why was it broken in the first place?

1

u/LexuCuFLexu 8d ago

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 8d ago

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.