Python JSON encoder to support datetime?

json.dumps(thing, default=str)

Leave a Comment