Lets say I have this class
class LineItem:
def __init__(self):
self.var1 = 1
When I encode this json with JSON pickle it will save all the attributes and class definition. And after encoding, lets say I change the class to following.
class LineItem:
def __init__(self):
self.var1 = 1
self.var2 = 2
Now after changing the line item, if I decode the existing json with JSON pickle. The newly decoded class instance of LineItem will not have attribute var2. So if I try to access it, it will throw an error.
In my opinion, there should be an option to reinitialize the class instance.