function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DrBixDrBix 

JSON and serialize/deserialize

I'm attempting to serialize an object that was fetched from the database.  The object also has a "sub-query" that returns it's children.  When I serialize it, and attempt to deserialize it, I receive an error that the parent object does not have a certain field.  The field in error is actually in the child object.  Is there some outstanding bug in the serialize/deserialize code that is causing this error?

 

Thanks in advance.

kibitzerkibitzer

Good question - I ran into this as well. I ended up stripping the sub-object data out of the JSON string in order to do the deserialization.

DrBixDrBix

Are there any other general purpose libraries that anyone is aware of that might provide this functionality?