JS JSON Flashcards

1
Q

What is JSON?

A

A primitive data type typically string that is stored into data to be used

JavaScript Object Notation

JSON is a lightweight format for storing and transporting data

JSON is often used when data is sent from a server to a web page

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

What are serialization and deserialization?

A

Serialization is when a certain value is transformed into bytes of data

Deserialization is when bytes of data are transformed into a value

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