This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Connor.Wolf
Recipients Connor.Wolf, ezio.melotti
Date 2016-01-13.23:40:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452728434.25.0.353545465405.issue26105@psf.upfronthosting.co.za>
In-reply-to
Content
The problem here is that JSON is *everywhere*, and I only ran into this particular issue after a whole bunch of digging as to why my "JSON" messages were disappearing in some javascript. 

Basically, with the default the way it is, you have interoperability bombs in every project that uses it to interface with other languages. In my case, I'm using Flask-SocketIO ( https://github.com/miguelgrinberg/Flask-SocketIO ), which uses JSON as it's transport, and it works fine until you have a NaN or infinity in your data, at which point the socket.io in the browser starts *silently* eating messages.

Basically, if I call json.dumps, the principle of least astonishment dictated that you actually get, you know, JSON.

If you have a module called something like `pyson`, and it's partially JSON compatible, that makes sense. For the JSON module to fail at the very thing it's named after is kind of ludicrous.
History
Date User Action Args
2016-01-13 23:40:34Connor.Wolfsetrecipients: + Connor.Wolf, ezio.melotti
2016-01-13 23:40:34Connor.Wolfsetmessageid: <1452728434.25.0.353545465405.issue26105@psf.upfronthosting.co.za>
2016-01-13 23:40:34Connor.Wolflinkissue26105 messages
2016-01-13 23:40:34Connor.Wolfcreate