Serialization refers to converting the data type in memory into a string so that it can be stored on the hard disk or transmitted over the network to the remote, because the hard disk or the network can only accept bytes
Converting a string into an in-memory data type is called deserialization.
JSON and Pickle
Second, just convert the data type into a string into memory meaning
Json.dumps json.loads
1. Share your memory data across the network to remote others
2. Define the interaction rules for different languages
A. Plain text, disadvantage, cannot share complex data types
B.xml, bad, occupy a large space
C.json, simple, good readability
Three, the difference between JSON and pickle:
JSON supports data types with the str int tuple dict typically used when sharing data between different languages
Pickle
Support for all data types in Python can only be used in Python
Four, JSON and pickle can dump multiple times to a file, but load will error, usually a dump, a load
Python base-json and pickle modules