An easy way to do this is to pass data to a string. This way you can reset using json.
>>> datetime.now() datetime.datetime(2016, 3, 8, 11, 37, 24, 123639) >>> str(datetime.now()) '2016-03-08 11:37:27.511053'
But you can also implement a serializer to convert the data as you wish.
feliperuhland
source share