|
%!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
src | %!s(int64=4) %!d(string=hai) anos | |
style | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=6) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=6) %!d(string=hai) anos | |
typedoc.json | %!s(int64=5) %!d(string=hai) anos |
A JupyterLab extension for rendering JSON as a tree
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:
See the JupyterLab Contributor Documentation.