JSON Fundamentals Flashcards

1
Q

What does JSON stand for?

A

JavaScript Object Notation

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

What is JSON?

A

A standard text-based format for representing structured data based on JavaScript object syntax.

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

How is JSON commonly used for?

A

Transmitting data in web applications.

eg.) sending data from the server to the client, so it can be displayed on a web page.

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

JSON is a ____-based format following JS object syntax.

A

Text

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

T or F: JSON is created as a string.

A

True

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

What is parsing?

A

When converting a string to a native object.

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

What is stringification?

A

Converting a native object to a string so it can be transmitted across the network.

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

JSON object can be stored in its own file, in the extension _____, and a media type of _____/_____.

A

.json. application/json

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

What does it mean when JSON is purely a data format?

A

It contains only properties, no methods.

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

JSON requires ____ ____ to be used around strings and property names.

A

double quotes

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

T or F: Singles quotes are valid in JSON.

A

False. Only accepts double quotes.

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

You can validate JSON using an application like _______.

A

JSONlink

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

T or F: Even a single misplaced comma or colon can cause a JSON file to go wrong.

A

True

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

T or F: JSON does not accept all data types.

A

False. Jason can take the form of any data type including arrays or object.

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

JSON uses ______ syntax, but the JSON format is _____ only.

A

JavaScript, text

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