javascript-and-json Flashcards
1
Q
What is JSON?
A
JSON is s string data format used to store and send information between computer systems.
2
Q
What are serialization and deserialization?
A
serialization converts a in-memory data structure to a value that can be stored or transferred. deserialization is the conversion from serialized string to an in-memory data structure.
3
Q
Why are serialization and deserialization useful?
A
it’s easier to store and transfer data to different environment.
4
Q
How do you serialize a data structure into a JSON string using JavaScript?
A
using the JSON.stringify()
5
Q
How do you deserialize a JSON string into a data structure using JavaScript?
A
using the JSON.parse()