[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bulletproof json.dump?

On 2020-07-06, J. Pic <jpic at> 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:

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