Skip to content

habemus-papadum/interactive-json-tree

Repository files navigation

interactive-json-tree

Expandable tree view for JSON-like data for Jupyter.

Installation

pip install interactive-json-tree

Example:

from 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)


Screenshot

Example of interactive-json-tree expandable view

Credits / Caveat

Vibe coded with GPT-5-Pro in 30 minutes

About

Expandable tree view for JSON-like data for Jupyter

Resources

License

Stars

Watchers

Forks

Packages

No packages published