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

plist_from_json() fails on JSON numbers containing e+ exponents #258

Open
sctol opened this issue Apr 20, 2024 · 1 comment
Open

plist_from_json() fails on JSON numbers containing e+ exponents #258

sctol opened this issue Apr 20, 2024 · 1 comment

Comments

@sctol
Copy link

sctol commented Apr 20, 2024

plist_from_json() fails when encountering JSON number tokens containing explicit positive exponents "e+" or "E+" followed by the exponent digits. It does work for "e-", "E-", "e", and "E". The current JSON standard (json.org) and RFC 8259 allow for JSON numbers to contain '+" in the exponent. jplist.c line 514 to 549.

For example:

{ "real":1.23456e4 } works

{ "real":1.23456e+4 } fails

@nikias
Copy link
Member

nikias commented May 14, 2024

See e3568d8. Will be added in next release.2q

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