Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

The Language Machines Speak to Each Other

JSON’s curly braces create a tree of data that any app can read.

JSON (JavaScript Object Notation) structures data as nested key-value pairs. It’s the lingua franca of web APIs — billions of messages are sent in JSON format every day.

Nesting Depth

Each level of nesting multiplies the possible structures. With 3 keys per level and 4 levels deep, there are 3⁴ = 81 possible leaf paths.

API response complexity

  1. 1

    Level 1

    3 keys (user, order, status)

  2. 2

    Level 2

    Each has 3 sub-keys

  3. 3

    Total paths at depth 2

    3×3=93 \times 3 = 9
  4. 4

    At depth 4

    34=813^4 = 81
Answer

81 possible data paths at 4 levels deep

The takeaway

JSON’s simple nesting creates exponentially complex data structures — the backbone of modern web communication.

Back to all stories