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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are serialization and deserialization useful?

A

it’s easier to store and transfer data to different environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you serialize a data structure into a JSON string using JavaScript?

A

using the JSON.stringify()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you deserialize a JSON string into a data structure using JavaScript?

A

using the JSON.parse()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly