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

Detailed error message on parse failures? #26

Open
agentzh opened this issue Jan 3, 2017 · 1 comment
Open

Detailed error message on parse failures? #26

agentzh opened this issue Jan 3, 2017 · 1 comment

Comments

@agentzh
Copy link

agentzh commented Jan 3, 2017

I wonder if this library can do detailed error reporting on invalid JSON inputs. Right now it does not indicate the offending location in the potentially large JSON input strings nor it reports that grammatical symbols the parser was expecting that that offending location.

@moritz
Copy link
Owner

moritz commented Mar 19, 2017

👍 to reporting the position. Reporting the grammatical symbols that the parser expects tends to produce rather confusing results if done in a generic way, so I tend to favor manually inserted guard clauses.

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

No branches or pull requests

2 participants