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
- JsonViewer - the text view
- Tree - the control underneath