These are chat archives for django/django

Feb 2018
Feb 18 2018 14:02
May I ask, in DJango Rest Fraework. What is serializing exactly? I know it converts database object into representable data such as JSON and deserialize it do it in reverse but what exactly is Serializing? Can it be used to "Serialize" database object into format of your choice?
Mehmood Deshmukh
Feb 18 2018 14:49
@YiiKuoChong you can convert it into either of the three formats: XML, JSON or YAML according to the docs
Mehmood Deshmukh
Feb 18 2018 15:10
Serialising is basically converting an object or data structure into a format that can be stored to disk and can later be deserialised or reloaded by the same application that serialised it or by any other application
Mehmood Deshmukh
Feb 18 2018 15:15

The Wikipedia definition of Serialization is:

In computer science, in the context of data storage, serialization is the process of translating data structures or object state into a format that can be stored (for example, in a file or memory buffer) or transmitted (for example, across a network connection link) and reconstructed later (possibly in a different computer environment). When the resulting series of bits is reread according to the serialization format, it can be used to create a semantically identical clone of the original object. For many complex objects, such as those that make extensive use of references, this process is not straightforward. Serialization of object-oriented objects does not include any of their associated methods with which they were previously linked.