Data serialization is the process of converting data into a standardized format/structure that can be stored (in a file) or transmitted (over a network) and reconstructed later (by a different application).
This allows the data to be communicated between applications in a way both applications can understand.
Data serialization languages allow us to represent variables with text.
Example of Data Serialization
Data Serialization Languages
There are three different data serialization languages you need to know for the CCNA, being:
JSON
XML
YAML
1. JSON
JavaScript Object Notation (JSON) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects.
It was derived from JavaScript, but it is language-independent and many modern programming languages are able to generate and read JSON data.
JSON Properties
JSON is very human-readable
REST APIs often use JSON.
Whitespace is insignificant
JSON can represent four ‘primitive’ data types
String
A string is a text value. It is surrounded by double quotes ” ”.