# sophon-notebook-json-extension

> JupyterLab - JSON Renderer

Latest version **1.0.2** (published 2019-07-31) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install sophon-notebook-json-extension
pnpm add sophon-notebook-json-extension
yarn add sophon-notebook-json-extension
bun add sophon-notebook-json-extension
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-31 |
| First published | 2019-07-31 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15384 |
| Author | Project Jupyter |
| Maintainers | lcconly |

## Links

- npm: https://www.npmjs.com/package/sophon-notebook-json-extension
- Repository: https://github.com/jupyterlab/jupyterlab
- Issues: https://github.com/jupyterlab/jupyterlab/issues
- npm.io page: https://npm.io/package/sophon-notebook-json-extension

## Dependencies (10)

- [react](https://npm.io/package/react.md) ~16.8.4
- [react-dom](https://npm.io/package/react-dom.md) ~16.8.4
- [react-json-tree](https://npm.io/package/react-json-tree.md) ^0.11.0
- [@phosphor/widgets](https://npm.io/package/@phosphor/widgets.md) ^1.8.0
- [react-highlighter](https://npm.io/package/react-highlighter.md) ^0.4.0
- [@phosphor/coreutils](https://npm.io/package/@phosphor/coreutils.md) ^1.3.1
- [@phosphor/messaging](https://npm.io/package/@phosphor/messaging.md) ^1.2.3
- [sophon-notebook-apputils](https://npm.io/package/sophon-notebook-apputils.md) ^1.0.2
- [sophon-notebook-ui-components](https://npm.io/package/sophon-notebook-ui-components.md) ^1.0.0
- [sophon-notebook-rendermime-interfaces](https://npm.io/package/sophon-notebook-rendermime-interfaces.md) ^1.3.0

## Recent versions

- 1.0.2 (latest) — 2019-07-31
- 1.0.1 — 2019-08-02

## README

# json-extension

A JupyterLab extension for rendering JSON as a tree

![demo](http://g.recordit.co/mqve0QPqyM.gif)

## Prerequisites

- JupyterLab ^0.27.0

## Usage

To render [JSON-able dict or list](https://ipython.org/ipython-doc/3/api/generated/IPython.display.html#IPython.display.JSON) in IPython:

```python
from IPython.display import JSON

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

To render a fully expanded tree:

```python
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](https://github.com/jupyterlab/jupyterlab/blob/master/CONTRIBUTING.md).

---
_Source: https://npm.io/package/sophon-notebook-json-extension · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
