About
A collapsible JSON tree viewer for inspecting API responses and debug payloads, with colored value types, item counts on folded nodes, copy value/copy path buttons and full arrow-key keyboard navigation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Json Viewer to your project and fits it to your theme.
Code
How Json Viewer is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import JsonViewer from "@/components/ui/json-viewer";
export default function JsonViewerDemo() {
return (
<div className="flex w-full items-center justify-center p-8">
<JsonViewer />
</div>
);
}







