-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
The parser used for parsing JSON documents does not allow the exponent of a number to have leading zeros.
We can currently correctly parse 2.0e+1, but not 2.0e+01.
According to https://www.json.org/json-en.html numbers themselves are not allowed to have leading zeroes, the exponent however is not restricted in that way.
In
JSONata4Java/src/main/antlr4/com/api/jsonata4java/expressions/generated/MappingExpression.g4
Line 172 in d072847
| fragment EXP : [Ee] [+\-]? INT ; // \- since - means "range" inside [...] |
however it is specified that the exponent must be INT. Maybe [0-9]+ would be better?
GrigoriOH
Metadata
Metadata
Assignees
Labels
No labels