1. A method, implemented at a computer system that includes one or more processors, the method comprising: retrieving a data object; serializing the data object; and preserving relationships associated with the data object by attaching key information to the data object, and wherein a retrieval of a relationship varies according to whether a value included in the key information is null or non-null.