Answers for "jsonpickle exclude py/object"

0

jsonpickle exclude py/object

import datetime
import jsonpickle

class MyClass:
    def __init__(self, eee):
        now = datetime.datetime.utcnow()
        self.ddd = now
        self.ddd2 = now
        self.ddd3 = now

my_object = MyClass('hi')
jsonpickle.encode(my_object, make_refs=False)
Posted by: Guest on October-06-2021

Browse Popular Code Answers by Language