Skip to content
J

json-view-cn

A collapsible, syntax-highlighted JSON tree viewer component

#1733in UI Libraries
0In stores

Description

JSON Tree Viewer is a React component that shows JSON as a collapsible, syntax-highlighted tree. You can expand and collapse nodes, turn ind…

Highlights

  • Collapsible, syntax-highlighted JSON tree
  • Copy support and optional indent guides
  • Nodes can start collapsed for large objects
  • Built with shadcn/ui, Base UI and Tailwind v4
  • Copy-paste install with the shadcn CLI

Ratings & Reviews

No ratings yet

Be the first to rate json-view-cn.

People also visit

R

React Json View

JSON viewer for react

Developer Tools
Launch
U

@uiw/react-json-view

JSON viewer for react

UI Libraries
Launch
R

react18-json-view

JSON viewer for react18

UI Libraries
Launch
R

react-json-viewer-cool

React json view plugin, supports expansion and hiding. Uses react hooks

UI Libraries
Launch
S

searchable-react-json-view

Interactive react component for displaying javascript arrays and JSON objects

UI Libraries
Launch
R

react-json-pretty

A code formatting tool for raw json data

UI Libraries
Launch

json-view-cn FAQ

What is JSON Tree Viewer?

A React component that shows JSON as a collapsible, syntax-highlighted tree. It is built with shadcn/ui, Base UI and Tailwind CSS v4.

How do I install it?

Run npx shadcn@latest add https://json-view-cn.vercel.app/r/json-view.json. The source is copied into your project, where you can edit it.

Does it support dark mode?

Yes. The demo page shows dark mode, and it has a theme toggle you can try.

Can nodes start collapsed?

Yes. The site shows a collapsed-by-default example, as well as a version with no indent guides.

Can users copy the data?

Yes. The viewer has copy support, which the demo page shows.

What are the best json-view-cn alternatives?

Popular alternatives to json-view-cn include @uiw/react-json-view, react18-json-view and react-json-viewer-cool. See all json-view-cn alternatives

Developer Stuff

Badges