Boop-GTK icon indicating copy to clipboard operation
Boop-GTK copied to clipboard

Better error messages parsing json

Open melizeche opened this issue 3 years ago • 2 comments

It would be nice to have better error message formatting JSON, sometimes I paste 30 lines of JSON and if everything isn't perfect it just says ERROR: Invalid JSON I think a great improvement would be to have some extra information like https://jsonlint.com/ image

PS: I really like this project, awesome work!

melizeche avatar Oct 15 '20 23:10 melizeche

I agree, do you want to open an issue upstream (https://github.com/IvanMathy/Boop/)? I know @IvanMathy was keen to keep JSON.parse because its native, and providing better error messages would require a custom parser, but IMO the usability improvements from better error messages seems worth it.

zoeyfyi avatar Oct 16 '20 08:10 zoeyfyi

@mrbenshef I wasn't aware of the existence of Boop for mac, I thought this was the "main" project. Thanks for pointing me in the right direction I opened an issue there --> https://github.com/IvanMathy/Boop/issues/202

melizeche avatar Oct 16 '20 17:10 melizeche