JSON Flashcards

1
Q

What is JSON? What kind of syntax is it based on?

A

JSON (JavaScript Object Notation) is a standard text-based format for representing structured data. It is based on JS object syntax

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

JSON exists as a what kind of data type?

A

String

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

To what needs the JSON data be converted in order to access the data?

A

To a native JavaScript object

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

Besides string, what else can we convert to/from JSON?

A

Arrays

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

What kind of quotes have to be around JSON properties and strings?

A

Double quotes

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

What does JSON.parse() do?

A

It converts data into JS object

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

What does JSON.stringify() do?

A

Converts JS object into a string.
Now it is ready to be sent to a server

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