You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application, the object graph to be serialised contains objects that are subclassed about 5 or so deep. I have created custom readers and writers for one or more of the intermediate subclasses. However, when the objects are serialised, the entire inheritance structure of the object is not serialised. Only the subclasses with the custom readers/writers are serialised. What am I missing? In my custom reader/writer, do I need to do something analogous to super()? All the examples and tests do not use objects with inheritance, so I can't see how to do it. Thanks.
The text was updated successfully, but these errors were encountered:
And, only the "lowest" subclass (that is, the final child of the inheritance farthest away from Object) that has a custom serialiser, is serialised. It is as though .toJson() and .toObjects() starts at the custom serialiser of the "lowest" subclass that has a custom serialiser, does that read/write, and then doesn't serialise the rest of the object.
So therefore, does the customer serialiser for the lowest subclass need to be responsible for serialising the entire object?
In my application, the object graph to be serialised contains objects that are subclassed about 5 or so deep. I have created custom readers and writers for one or more of the intermediate subclasses. However, when the objects are serialised, the entire inheritance structure of the object is not serialised. Only the subclasses with the custom readers/writers are serialised. What am I missing? In my custom reader/writer, do I need to do something analogous to super()? All the examples and tests do not use objects with inheritance, so I can't see how to do it. Thanks.
The text was updated successfully, but these errors were encountered: