Serializing and Parsing JSON
In this lesson, we'll get into the details of serializing and parsing JSONs. Let's begin!
We'll cover the following...
When transferring data from one component to another in a distributed system, JSON is a perfect format and fits JavaScript as well.
The fifth edition of the ECMAScript specification formalized the serialization (converting an object to a string) and parsing of JSON into a native global object, not surprisingly named JSON.
This object is very simple for it has only two methods, stringify()
and parse()
. ...