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
2
Q
JSON exists as a what kind of data type?
A
String
3
Q
To what needs the JSON data be converted in order to access the data?
A
To a native JavaScript object
4
Q
Besides string, what else can we convert to/from JSON?
A
Arrays
5
Q
What kind of quotes have to be around JSON properties and strings?
A
Double quotes
6
Q
What does JSON.parse() do?
A
It converts data into JS object
7
Q
What does JSON.stringify() do?
A
Converts JS object into a string.
Now it is ready to be sent to a server