javascript-and-json Flashcards

1
Q

What is JSON?

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

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

Why are serialization and deserialization useful?

A

can transmits data to different servers

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

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

A

JSON.parse()

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

JSON.stringify().

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