Module json-extension - v4.2.0-beta.3

json-extension

A JupyterLab extension for rendering JSON as a tree

This extension is in the official JupyterLab distribution.

Usage

To render JSON-able dict or list in IPython:

from IPython.display import JSON

JSON({
"string": "string",
"array": [1, 2, 3],
"bool": True,
"object": {
"foo": "bar"
}
})

To render a fully expanded tree:

JSON({
"string": "string",
"array": [1, 2, 3],
"bool": True,
"object": {
"foo": "bar"
}
}, expanded=True)

To render a .json file, simply open it:

Development

See the JupyterLab Contributor Documentation.

Index

Classes

Variables