You are sailing over the ocean and imagine you are a columbus, you found the treasure on the ocean, you want to send the information back to the spain.
You require the letter (to drap map and direction ),
In similar manner ,Serialization is converting a complex object to string/json object that easly stored in dB, sent over the network and stored into local storage.
Deserialization:
You have sent the letter to the spain, that is letter ,stored maps and directions. and goverment needs to understand it's meaning , they need to reconstruct the idea on letter or maps into the meaningful story and description.
The converting stored format object to easy to access object is Deserialization.
Key Concepts
Purpose:
You are columbus , you have embedded the letter and draw the map that enables others to understand, we convert into the json , so other programming language , or application understand the data.
Common Formats:
Columbus created a letter of JSON (human-readable)
, XML, binary formats (compact and fast, like Protocol Buffers or BSON).
Why Serialization Matters
Persistence:
When you open call of duty , you save the level completed status to file or database.
Data Transmission: Data transfer ex- you send your text to google search.



Top comments (0)