JSON Flashcards

1
Q

What is JSON?

A

(JavaScript Object Notation) - a standard string-based format for representing structured data (objects or arrays) based on JavaScript object syntax.

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

What are serialization and deserialization?

A
  • serialization: converting an object into a (json) string so it can be transmitted across the network
  • deserialization: converting a (json) string to an object
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( object/ value);

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( the string);

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

Why are serialization and deserialization useful?

A

makes it possible to send data

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