Skip to content

Conversation

@ngober
Copy link

@ngober ngober commented Mar 31, 2022

Resolves #4.

The bug occurs because the fractional part was parsed with an int0_parser(), which discards leading zeros. Instead, we create a many(make_char_parser('0'), ...) that counts the number of leading zeros, then we do another repeated division step to shift the digits into position.

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

Successfully merging this pull request may close these issues.

JSON parser strips leading zeros after decimal point

1 participant