Expandable tree view for JSON-like data for Jupyter.
pip install interactive-json-treefrom interactive_json_tree import JSON
example = {
"name": "Acme Corp",
"employees": [
{"name": "Ada", "skills": ["CSS", "JS"]},
{"name": "Bob", "skills": []},
],
"meta": {"founded": 2012, "active": True, "bar": None},
}
JSON(example, expand_depth=2){} Object (3)
"name": "Acme Corp"
"employees": [] Array (2)
[0]: {} Object (2)
"name": "Ada"
"skills": [] Array (2)
[0]: "CSS"
[1]: "JS"
[1]: {} Object (2)
"name": "Bob"
"skills": [] Array (0)
"meta": {} Object (3)
"founded": 2012
"active": true
"bar": null
(Github preview will sanitize styles out of the example above. See below for a screenshot)
Vibe coded with GPT-5-Pro in 30 minutes
