Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error messages parsing json #148

Open
melizeche opened this issue Oct 15, 2020 · 2 comments
Open

Better error messages parsing json #148

melizeche opened this issue Oct 15, 2020 · 2 comments
Labels

Comments

@melizeche
Copy link

melizeche commented Oct 15, 2020

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!

@zoeyfyi
Copy link
Owner

zoeyfyi commented Oct 16, 2020

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.

@melizeche
Copy link
Author

@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 --> IvanMathy/Boop#202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants