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

json.parse fails on negative integers #319

Open
RisingSunStudios opened this issue Apr 18, 2023 · 1 comment
Open

json.parse fails on negative integers #319

RisingSunStudios opened this issue Apr 18, 2023 · 1 comment

Comments

@RisingSunStudios
Copy link

Hi,

Found a bug in the lexer where it will throw a SyntaxErrorException with the message 'unexpected token: "-"' when the data contains a negative number.

json.parse("{ \"foo\": -1 }}")

@marianolarre
Copy link

This is such a simple and ubiquitous use case. Not workign with negative numbers it is unusable in most cases

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