Bulletproof json.dump?

Jon Ribbens jon+usenet at unequivocal.eu
Mon Jul 6 09:14:37 EDT 2020


On 2020-07-06, J. Pic <jpic at yourlabs.org> wrote:
> Well I made a suggestion on python-ideas and a PyPi lib came out of it, but
> since you can't patch a lot of internal types it's not so useful.
>
> Feel free to try it out:
>
> https://yourlabs.io/oss/jsonlight/

While I applaud your experimentation, that is not suitable for any purpose.
You would probably do better by starting off subclassing json.JSONEncoder.


More information about the Python-list mailing list