---
name: "@json-view-cn"
slug: "json-view-cn"
description: "A collapsible, syntax-highlighted JSON tree viewer component for React, built with Base UI"
category: "Uncategorized"
tags: []
framework: "react"
license: null
author: null
website: "https://json-view-cn.vercel.app"
github: null
registry: "https://json-view-cn.vercel.app/r/registry.json"
pro: false
pro_url: null
github_stars: null
component_count: 1
generated_at: "2026-10-10T06:32:55.998Z"
---

# @json-view-cn

A collapsible, syntax-highlighted JSON tree viewer component for React, built with Base UI

## Links

- Website: https://json-view-cn.vercel.app
- Registry JSON: https://json-view-cn.vercel.app/r/registry.json
- Directory page: https://sh4dcn.vercel.app/registry/json-view-cn
- This file: https://sh4dcn.vercel.app/md/json-view-cn.md

## Install

```sh
# add the whole registry (shadcn CLI)
npx shadcn@latest add https://json-view-cn.vercel.app/r/registry.json
pnpm dlx shadcn@latest add https://json-view-cn.vercel.app/r/registry.json
bunx shadcn@latest add https://json-view-cn.vercel.app/r/registry.json
# fetch the raw registry index
curl -s https://json-view-cn.vercel.app/r/registry.json
```

## Components (1)

| name | type | description | install |
| --- | --- | --- | --- |
| json-view | registry:ui | A fully-customizable, collapsible, syntax-highlighted JSON tree viewer component. For projects using Base UI / base-mira style. | `npx shadcn@latest add https://json-view-cn.vercel.app/r/json-view.json` |

## For AI agents

```text
You are adding components from @json-view-cn to a shadcn-compatible project.
1. Read this file (https://sh4dcn.vercel.app/md/json-view-cn.md) for the component list.
2. Fetch the machine-readable index: https://json-view-cn.vercel.app/r/registry.json
3. Install a single component with its install command from the table above.
4. Full structured record: https://sh4dcn.vercel.app/json (library slug: json-view-cn).
```
