Expandable/collapsible pretty-printed JSON for Jupyter Notebooks
Project description
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
Credits / Caveat
Vibe coded with GPT-5-Pro in 30 minutes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
interactive_json_tree-0.2.0.tar.gz
(271.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file interactive_json_tree-0.2.0.tar.gz.
File metadata
- Download URL: interactive_json_tree-0.2.0.tar.gz
- Upload date:
- Size: 271.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f10ada616e076154ef9491acc3bd1c70a9766faa703894fe9537fb7e5d950c
|
|
| MD5 |
e4d59543381eb26a54a6c3203bf49c22
|
|
| BLAKE2b-256 |
c7b961ae5ca5ea749f18604d58b509f5471568a75db4036cbb9a63792335e6b9
|
File details
Details for the file interactive_json_tree-0.2.0-py3-none-any.whl.
File metadata
- Download URL: interactive_json_tree-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f30d1419e97614f8238477cc830c35ab526e96d8a88be7266dacd7543d865fc4
|
|
| MD5 |
f62e63d054543e22715e9d2137d24b50
|
|
| BLAKE2b-256 |
4ce416c6e3955ff6209753b6279110f4d30af9fe49d2018ee7ec7258953ff6d3
|