javascript-and-json Flashcards
What is JSON?
JavaScript Object Notation is a common text-based data interchange format used to send and store information in computer systems.
What are serialization and deserialization?
Serialization is the process of turning an object in memory into a stream of bytes so you can do stuff like store it on disk or send it over the network.
Deserialization is turning a stream of bytes into an object in memory.
Why are serialization and deserialization useful?
They parse data into the right format readable by the computer.
How do you serialize a data structure into a JSON string using JavaScript?
JSON.stringify
How do you deserialize a JSON string into a data structure using JavaScript?
JSON.parse