One, what is serialization (pickling):
The process of changing an object (variable) from memory into a storage or transfer is called serialization.
serialization can persist state without losing power to the computer or restarting the program, causing the previous data state to be lost. You can continue execution at the next time the program executes based on the state that was previously executed.
after serialization , you can interact across platform data. It breaks the limitations of platform/programming language differentiation, and it shows the interaction of data across platforms.
To put it simply:
Serialization: In-memory data structure---"into an intermediate format (string)---" stored in a file
In turn, the variable contents are reread from the object of the sequence into memory called deserialization (unpickling).
Deserialization: File------Read Intermediate format (string)-----"converted into in-memory data
The JSON and pickle of serialization: Application
Two modules for serialization
JSON is used to convert between string and Python data types
Pickle is used to convert between Python-specific types and Python data types
JSON and pickle modules (serialization and deserialization)