Let's say you have some objects in memory in the form of links (Java) and pointers (C ++), and you want to transfer these objects over the network or save them to disk. How do you do this?
Think about the decision and keep it in your mind.
There are two ways.
First, create a memory dump and save it to disk or transfer it over the network. But this will require many changes in the memory dump, or a memory dump will require exactly the same addresses in memory that the memory links will not be broken.
The second answer is serialization, converting data to a string (JSON format), and then transferring or saving
source share