moonsharp icon indicating copy to clipboard operation
moonsharp copied to clipboard

json.parse fails on negative integers

Open RisingSunStudios opened this issue 2 years ago • 1 comments

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 }}")

RisingSunStudios avatar Apr 18 '23 19:04 RisingSunStudios

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

marianolarre avatar May 21 '24 20:05 marianolarre