JS JSON Flashcards
1
Q
What is JSON?
A
A primitive data type typically string that is stored into data to be used
JavaScript Object Notation
JSON is a lightweight format for storing and transporting data
JSON is often used when data is sent from a server to a web page
2
Q
What are serialization and deserialization?
A
Serialization is when a certain value is transformed into bytes of data
Deserialization is when bytes of data are transformed into a value
3
Q
How do you serialize a data structure into a JSON string using JavaScript?
A
JSON.stringify( )
4
Q
How do you deserialize a JSON string into a data structure using JavaScript?
A
JSON.parse