Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 814 Bytes

Serialization.md

File metadata and controls

7 lines (4 loc) · 814 Bytes

Serialization in DRF (Django REST Framework)

Serialization is the process of converting complex data types from models to python dictionaries which can be further easily converted to JSON or XML.

Screenshot from 2022-02-09 12-11-19

All the frontend applications cannot directly parse the complex data type used in models of the database therefore it is very necessary to convert it into a globally standardized data format like JSON or XML. This channel of the process first involves converting the complex-datatype into python iterable objects generally i.e to dictionaries this process of conversion is called serialization. It becomes very easy to convert python iterable into a JSON or XML object.