JSON files: structure
JSON stores data as key-value pairs inside curly braces, with lists in square brackets. Objects can nest inside each other, so programs can read it easily. It is a lighter alternative to XML.
Understanding JSON files: structure in QCE Digital Solutions Unit 3
What it does: The value of the key student is itself an object in curly braces, which is nesting. The square brackets hold a list of objects with no closing tags, so JSON is lighter and shorter than the XML version. The text before the colon is the key and the text after it is the value. So "year" is the key and 12 is its value. An array of objects gives each student their own object, and every object has the same keys. Repeating a key inside one object is confusing and breaks the structure. JSON separates pairs with commas, and a trailing comma after the last pair is not allowed. Semicolons are not used.
Common mistakes: A JSON key and its value are separated by a colon, not an equals sign. It should be "name": "Ava",. JSON keys must be wrapped in double quotes. It should be "student": "Liam",.
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 194–250) and word search (Modules 194–337).
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
{"name": "Ava", "year": 12}Fill in the Blanks
Spot the Error
Student with a class code? Join your class →