JSON Forge
100% Client-Side: your data is never sent to a server

JSON examples

Nested JSON Example

Real data is rarely flat. This example nests objects and arrays four levels deep, which makes it a good sample for learning to navigate with paths and queries.

Loading editor…
Paste or type JSON on the left to explore it as a tree.
Empty🔒 Processed locally in your browser

The example

The JSON above is the example. Explore it in the Tree tab, press Download to save it as a .json file, or Share to send someone a link to it. All names, ids, emails and values are invented.

Fields explained

PathTypeNotes
companyobjectThe root of the structure.
company.departmentsarray of objectsEach department has a name and a list of teams.
company.departments[].teamsarray of objectsTeams belong to a department.
company.departments[].teams[].membersarray of objectsPeople, the deepest level here.

Read it in code

JavaScript:

const first = data.company.departments[0].teams[0].members[0].name; // "Ada"

Python:

first = data["company"]["departments"][0]["teams"][0]["members"][0]["name"]  # Ada

What this example is good for

Tips

Convert this example

Open it in a converter, then switch the output in the Code tab:

More examples

All JSON examples · Cheat sheets