October 2018
Intermediate to advanced
370 pages
9h 15m
English
When we need to transform the state of an object to a format that can be stored or sent and restored after this, we can use serialization. The most common approach that is used in development is the serialization of objects to JSON format. An object represented in JSON is a collection of key-value pairs, while a key is represented by a string, and a value can have the following types:
The value can also be null. Keys and values are separated by colons, and pairs are separated by commas. In the following example code, JSON contains two pairs that contain values with string types:
{
"first_name": "Igor",
"last_name": "Kucherenko"
}
The following example code contains the "user" ...
Read now
Unlock full access