LOGBOOK

HELP

Quiz Entry - updated: 2026.06.23

How do you represent nested data structures in JSON?

You nest data in JSON by putting objects inside objects and using arrays of objects, to any depth — the same way you'd nest JavaScript objects and arrays.

{
  "person": {
    "name": "Anna",
    "address": {
      "street": "Main St",
      "city": "Zurich"
    },
    "phones": [
      { "type": "home", "number": "123-456" },
      { "type": "work", "number": "789-012" }
    ]
  }
}

Nesting can be arbitrarily deep. Access nested values: person.address.city or person.phones[0].number.

From Quiz: WEBT / External Webservices | Updated: Jun 23, 2026