Message258179
The Python library JSON library doesn't emit JSON by default.
Basically, `json.dumps(float('nan'))` produces something that kind of looks like json, but isn't (specifically, `'NaN'`). Valid JSON must be `null`.
JSON *does not allow `NaN`, `infinity`, or `-infinity`.
`json.dump[s]` has the parameter `allow_nan`, but it's `False` by default, so basically it's not actually JSON by default.
The default for emitting JSON should actually emit JSON. `allow_nan` must be `True` by default. |
|
Date |
User |
Action |
Args |
2016-01-13 23:15:13 | Connor.Wolf | set | recipients:
+ Connor.Wolf |
2016-01-13 23:15:13 | Connor.Wolf | set | messageid: <1452726913.68.0.934947942911.issue26105@psf.upfronthosting.co.za> |
2016-01-13 23:15:13 | Connor.Wolf | link | issue26105 messages |
2016-01-13 23:15:13 | Connor.Wolf | create | |
|