First, the development of the core separated front and rear ends: all comply with certain rules, the conversion to a data type to another data type
converting json call model serialization
would convert json model called deserialized
-
-
Deserialization: json -> dictionary -> Object
Second, the role serializer
Especially: serializer provided DRF
1.进行数据的校验
2.对数据对象进行转换
3. reduce the code amount, to improve coding efficiency