JSON structure
JSON stores data as key-value pairs inside {} objects and as ordered lists of values inside [] arrays. Keys are double-quoted strings. Values can be nested.
Understanding JSON structure in QCE Digital Solutions Unit 4
What it does: 17, true and null are not in quotes, because only strings use double quotes. Quoting them would turn them into strings. The key students holds an array, and each item in that array is an object with its own key-value pair. Arrays use square brackets. Curly braces create objects of key-value pairs. A key is a double-quoted string followed by a colon, then the value. JSON does not use = or unquoted keys. A JSON array is an ordered list. The values keep their position, so "red" is always first. Numbers are written without quotes and without currency symbols. "$4.5" is a string, not a number.
Common mistakes: JSON booleans must be lowercase. It should be "active": true. Capital-T True is Python, not JSON. A JSON object of key-value pairs must open with a curly brace {, not a square bracket. It closes with }, so the brackets don't match.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 89–125) and word search (Modules 17–125).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
JSON object and arrayFill in the Blanks
Spot the Error
Student with a class code? Join your class →