Renders any JSON-serialisable value (or a JSON string) as an interactive tree with collapsible objects and arrays, syntax highlighting, and a one-click copy-to-clipboard button.
Accepts a live object/array or a raw JSON string — both work:
<ui-json-view [value]="myObject" /><ui-json-view [value]="'{ \"key\": 42 }'" /> Copy
<ui-json-view [value]="myObject" /><ui-json-view [value]="'{ \"key\": 42 }'" />
Readonly
Accessible label for the viewer.
The value to display — any JSON-serialisable type or a JSON string.
Renders any JSON-serialisable value (or a JSON string) as an interactive tree with collapsible objects and arrays, syntax highlighting, and a one-click copy-to-clipboard button.
Accepts a live object/array or a raw JSON string — both work: