Rather than serializing the object, pull the data out of the object and put it into a dictionary. Then serialize the dictionary.
不要序列化对象本身,而是把数据从对象中提取出来,放到一个字典里,然后再序列化那个字典。
Because serializing an object is so easy, it should be easy to deserialize one too, right?
序列化一个对象是如此地容易,那么反序列化对象也很容易,对不对?
In those cases, serializing the entirety of the object is unnecessary.
在此情况下,没有必要序列化整个对象。
应用推荐