Velocity X Components

Standard Data

JSON Tree Viewer

Expandable nested JSON inspector with type-aware values, configurable initial depth, and native keyboard-operable disclosure buttons.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-json-tree-viewer

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for JSON Tree Viewer →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.0 react
JSON Tree Viewer
  • Workspace response: {5}
    • workspace: "Northstar Studio"
    • active: true
    • members: [2]
      • 0: {2}
      • 1: {2}
    • settings: {2}
      • region: "ap-southeast-2"
      • notifications: {2}
    • quota: null

Props

NameTypeRequiredDefaultDescription
dataobjectNo{}
labelstringNo"JSON data"
defaultOpenDepthnumberNo2
classNamestringNo""

No `Props:` JSDoc comment found — types are undocumented in source, only names/defaults are known.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-json-tree-viewer/JsonTreeViewer.jsx

Using the JSON Tree Viewer component

Install it with velocityx add standard-json-tree-viewer. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Data.