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

New JKParseOptionPermitLeadingZero option #127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

New JKParseOptionPermitLeadingZero option #127

wants to merge 2 commits into from

Conversation

robertmryan
Copy link

Normally when parsing numeric values, leading zeros are considered a parsing error. This is the correct behavior, but while assisting an individual diagnose a parsing error due to incorrectly formed JSON (see this Stack Overflow question), I suggested that he might be able to adjust jk_parse_number to permit leading zeros.

So, I offer this pull request with trepidation (as the correct resolution for that individual's problem is to fix his JSON), but nonetheless I thought I'd share this with you. Feel free to accept, improve, or simply reject/close this pull request as you see fit.

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.

1 participant