JsonTreeViewer

JSON as a collapsible tree.

import { JsonTreeViewer } from '@textui/documents';

<JsonTreeViewer content={'{ "ok": true }'} />

Props

No props of its own.

Role: tree.

The other viewer for the same kind. A tree is better for finding one value in a large document and worse for reading the document, which is exactly why both are registered and the reader chooses.

See also


Back to top

MIT licensed. Pre-1.0 - the surface is still moving.