javascript-and-json Flashcards
1
Q
What is JSON?
A
2
Q
What are serialization and deserialization?
A
Serialization takes an in-memory data structure and converts it into a series of bytes that can be stored and transferred.
Deserialization takes a series of bytes and converts it to an in-memory data structure that can be consumed programmatically.
3
Q
Why are serialization and deserialization useful?
A
can transmits data to different servers
4
Q
How do you deserialize a JSON string into a data structure using JavaScript?
A
JSON.parse()
4
Q
How do you serialize a data structure into a JSON string using JavaScript?
A
JSON.stringify().