amankaushik481

Json Viewer

Component

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>
  );
}

Dependencies

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Product Card

    Product Card

  • Floating Label Input

    Floating Label Input

  • Link Preview

    Link Preview

  • Relative Time

    Relative Time