What is serialization and deserialization? code example
Example 1: what is serialization and deserialization in java
Serialization; when we MAP a Java object to API JSON
format (CONVERT JAVA OBJECT TO JSON);
Deserialization; API JSON/XML ^ MAP it to Java Object
(JSON TO JAVA OBJECT)
Example 2: serialization vs deserialization
DE-SERIALIZATION: JSON --> JAVA OBJECT
SERIALIZATION: JSON <-- JAVA OBJECT
I add jacksonDataBinder dependency in my pom.xml file ->
it is a json parser. That is used for converting
from java object to json and from json to java object.