Just tried it in an ipython shell
import datetime
import json
json.dumps({"a": datetime.datetime(1970,1,1)})
And I got the TypeError: datetime not JSON serializable though.
Just tried it in an ipython shell
import datetime
import json
json.dumps({"a": datetime.datetime(1970,1,1)})
And I got the TypeError: datetime not JSON serializable though.