JSON Fundamentals Flashcards
What does JSON stand for?
JavaScript Object Notation
What is JSON?
A standard text-based format for representing structured data based on JavaScript object syntax.
How is JSON commonly used for?
Transmitting data in web applications.
eg.) sending data from the server to the client, so it can be displayed on a web page.
JSON is a ____-based format following JS object syntax.
Text
T or F: JSON is created as a string.
True
What is parsing?
When converting a string to a native object.
What is stringification?
Converting a native object to a string so it can be transmitted across the network.
JSON object can be stored in its own file, in the extension _____, and a media type of _____/_____.
.json. application/json
What does it mean when JSON is purely a data format?
It contains only properties, no methods.
JSON requires ____ ____ to be used around strings and property names.
double quotes
T or F: Singles quotes are valid in JSON.
False. Only accepts double quotes.
You can validate JSON using an application like _______.
JSONlink
T or F: Even a single misplaced comma or colon can cause a JSON file to go wrong.
True
T or F: JSON does not accept all data types.
False. Jason can take the form of any data type including arrays or object.
JSON uses ______ syntax, but the JSON format is _____ only.
JavaScript, text