Recall & Review
beginner
What does JSON stand for?
JSON stands for JavaScript Object Notation. It is a lightweight format to store and exchange data.
Click to reveal answer
beginner
Why is JSON commonly used in REST APIs?
JSON is easy to read and write for humans and machines. It is language-independent and works well for data exchange between servers and clients.
Click to reveal answer
beginner
What data types can JSON represent?
JSON can represent strings, numbers, objects (key-value pairs), arrays, booleans (true/false), and null.
Click to reveal answer
beginner
How is a JSON object structured?
A JSON object is enclosed in curly braces { } and contains key-value pairs. Keys are strings, and values can be any JSON data type.
Click to reveal answer
beginner
What is a common mistake when writing JSON?
A common mistake is using single quotes instead of double quotes for keys or strings. JSON requires double quotes for all keys and string values.
Click to reveal answer
Which of these is a valid JSON data type?
✗ Incorrect
JSON supports arrays, but not functions, undefined, or symbols.
In JSON, how must keys be written?
✗ Incorrect
JSON keys must always be enclosed in double quotes.
What is the main reason JSON is used in REST APIs?
✗ Incorrect
JSON is popular because it is simple and easy to read and exchange data.
Which symbol encloses a JSON array?
✗ Incorrect
JSON arrays are enclosed in square brackets [].
Which of these is NOT valid JSON?
✗ Incorrect
Keys must be in double quotes, so {name: "Bob"} is invalid.
Explain why JSON is the standard format for data exchange in REST APIs.
Think about what makes data easy to share between different programs.
You got /4 concepts.
Describe the structure of a JSON object and how it differs from a JSON array.
Compare the symbols and content inside JSON objects and arrays.
You got /5 concepts.