+ Start a Discussion

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.


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.


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