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 anders.rundgren.net@gmail.com
Recipients anders.rundgren.net@gmail.com, bob.ippolito, ethan.furman, rhettinger
Date 2014-12-29.07:48:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419839334.41.0.639762755243.issue23123@psf.upfronthosting.co.za>
In-reply-to
Content
It would be great if I could use a sub-classed Decimal during parsing but since it doesn't appear to be a way to serialize the result using the "json" package I'm probably stuck with the current "99%" solution.

I have solved this in Java and JavaScript by writing my own JSON stuff
http://webpki.org/papers/keygen2/doc/org/webpki/json/package-summary.html
but that method obviously doesn't scale and I'm a real n00b when it comes to Python although it was more fun than I had expected :-)

A minor patch addressing serialization of Decimal would probably do fine (after sub-classing) and would be generally useful.
History
Date User Action Args
2014-12-29 07:48:54anders.rundgren.net@gmail.comsetrecipients: + anders.rundgren.net@gmail.com, rhettinger, bob.ippolito, ethan.furman
2014-12-29 07:48:54anders.rundgren.net@gmail.comsetmessageid: <1419839334.41.0.639762755243.issue23123@psf.upfronthosting.co.za>
2014-12-29 07:48:54anders.rundgren.net@gmail.comlinkissue23123 messages
2014-12-29 07:48:53anders.rundgren.net@gmail.comcreate