[docs] [issue19871] json module won't parse a float that starts with a decimal point

Ned Batchelder report at bugs.python.org
Tue Dec 3 15:41:19 CET 2013


Ned Batchelder added the comment:

There are other forms of numbers allowed by Python that are not allowed by JSON: "001.1"

Oddly, with all of the strictness in JSON, the exponent-marker "e" can be upper- or lower-case:  1e1 and 1E1 are both valid JSON.

----------
nosy: +nedbat

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19871>
_______________________________________


More information about the docs mailing list