Chapter 01 — JSON — the language APIs speak5 min read

Chapter quiz

Test yourself

You made it through the entire JSON chapter. Let's see what stuck. Pick the right answer for each question. No tricks, no time limit.


Spot the types

What type is "hello"?

What type is 42?

What type is "false"?

What type is null?


Read the JSON

Here's a JSON response from an API. Use it to answer the next questions.

{
  "order": {
    "id": "ord_8f3a1b",
    "status": "delivered",
    "total": 7500,
    "customer": {
      "name": "Alice Martin",
      "email": "alice@acme.com",
      "is_premium": true
    },
    "items": [
      { "name": "Wireless Keyboard", "price": 4500 },
      { "name": "Mouse Pad", "price": 3000 }
    ],
    "discount_code": null
  }
}

What is the order status?

Is the customer a premium user?

How much is the total, in dollars?

Was a discount code used?

How many items are in the order?

You're done with Chapter 1. You can now read JSON, recognize data types, and navigate nested API responses. That's a real skill, and the foundation for everything else in this course.