ValyroUI Русская версия

JSON Viewer

JSON viewer. Pro · Data and metrics › Lists and trees

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add json-viewer
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { JSONViewer } from 'valyro-ui-pro';

Props

PropTypeDefault
data *JSONValueParsed JSON value shown as a collapsible tree; the copy button copies it pretty-printed.
defaultExpandDepthnumber1Objects and arrays shallower than this start expanded (0 = all collapsed).
maxStringLengthnumber120Strings longer than this are cut with a button to show the rest. Infinity disables it.
labelsPartial<JSONViewerLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Sortable · Next: Timeline · All Data and metrics