Z
Serialization is the transformation of the object or tree of the objects into a format so that they can be rebuilt from that format. Used, for example, to maintain the programme (i.e. some of its facilities) between launches. Or for the transmission of data between different copies of the programme (or different programmes), e.g. the network.The main idea is that a series format is a set of byte or line, which can be easily stored on a disk or transferred to another process or, for example, online, unlike the facility itself. Thus, the task of maintaining the object/group of objects is simply to maintain the set of byte or line.JSON is one of the popular formats for the showing, he's textual, light and easily read by man.Example: If you have a classclass Test
{
int length;
String name;
public Test(int length, String name)
{
this.length = length;
this.name = name;
}
}
The object of this class in a seriesed form can be seen{ "length": 25, "name": "Имя" }
The series itself (and deserization) can be performed manually or used by appropriate libraries/freimvors.There are also binary formats of the show.