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

Some invalid JSON can result in a StringIndexOutOfBoundsException instead of a ParseException #2

Open
RogueLogix opened this issue Jan 15, 2021 · 1 comment

Comments

@RogueLogix
Copy link

RogueLogix commented Jan 15, 2021

Given the invalid json string { // a StringIndexOutOfBoundsException will be generated as the parser will skip to the end of the line, past the end of the string, and attempt to access the character at index 5. I would expect to get a ParseException in this case, not the StringIndexOutOfBoundsException that is raised.

note: sorry about the notif being weird, i hit the wrong keys because IDE

@RogueLogix RogueLogix changed the title Some invalid JSON can result in an Index OutOfBoundsException instead of a ParseException Some invalid JSON can result in a StringIndexOutOfBoundsException instead of a ParseException Jan 15, 2021
@anymaker
Copy link
Owner

Thank you for your comment. I will fix this in a next release.

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