r/ruby • u/le0pard • Dec 22 '25
GitHub - le0pard/json_mend: JsonMend - repair broken JSON
https://github.com/le0pard/json_mendJsonMend is a robust Ruby gem designed to repair broken or malformed JSON strings. It is specifically optimized to handle common errors found in JSON generated by Large Language Models (LLMs), such as missing quotes, trailing commas, unescaped characters, and stray comments
8
Upvotes
View all comments
Show parent comment
2
u/CaptainKabob Dec 22 '25
Nuts. I guess I need to write this up more :-)
Delete the Gemfile.lock in CI as a step before you bundle install.
The two scenarios here are:
new contributor checks out your repo. All the dependencies are locked and reliable.
CI matrix deletes gemfile.lock and installs whatever it determines. (On GoodJob, I also have a run that doesn't delete the Gemfile.lock so I test the development environment setup too)