Closed JohnHeikens closed 2 months ago
find a way to implement a serialization function which can use dict for directly serializable members, and for the rest calls a custom serialization function
for now, we are using this trick: serialized_data = json.dumps(self.objects, default=lambda x: getattr(x, 'dict', str(x)))
serialization is working! the already defined functions can still be used
serializemembers can't be used (return self.dict or looping over struct members) because:
deriving from dict itself isn't recommended