javascript-and-json Flashcards

1
Q

What is JSON?

A

javascript object notation - used for transferring data from networks

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

What are serialization and deserialization?

A

converting an object to a string and - de is the opposite, turning a string into a object

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

Why are serialization and deserialization useful?

A

makes it easy to transfer data between computer systems

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

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

the parse method will deserialize

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