A powerful, real-time JSON data viewer with tree visualization and formatted display. Built with Next.js, React, and TypeScript.
- Real-time JSON Processing: Instant parsing and validation as you type or paste
- Dual View Modes:
- Tree View with collapsible folders and item counts
- Formatted JSON view with syntax highlighting
- Interactive Tree Navigation:
- Click to expand/collapse JSON objects and arrays
- Visual hierarchy with proper indentation
- Item count display for arrays and objects
- Color-coded data types
- Dark Theme: Optimized dark interface for comfortable viewing
- Resizable Panels: Adjust input/output panel sizes to your preference
- Error Handling: Clear error messages for invalid JSON
- Copy Functionality: One-click copy of formatted JSON
- Responsive Design: Works on desktop and mobile devices
Visit the live application: JSON Data Viewer
- Next.js 15 - React framework with static export
- React 19 - UI library with modern hooks
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- React Resizable Panels - Interactive panel resizing
- Node.js 18+
- npm or yarn
- Clone the repository:
git clone https://github.com/DTDucas/data-viewer.git
cd data-viewer- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
npm run buildThis creates an optimized static export in the out directory.
- Input JSON: Paste or type your JSON data in the left panel
- Real-time Validation: See instant feedback on JSON validity
- Choose View Mode: Switch between Tree View and Formatted view
- Navigate Data:
- In Tree View: Click arrows to expand/collapse objects and arrays
- Use "Expand All" / "Collapse All" buttons for bulk operations
- Copy Results: Click the copy button to copy formatted JSON
-
Color-coded Types:
- 🟢 Strings (emerald)
- 🔵 Numbers (blue)
- 🟣 Booleans (purple)
- ⚫ Null values (gray)
- 🟠 Arrays (orange)
- 🔴 Objects (rose)
-
Interactive Elements:
- Expandable/collapsible nodes
- Item count indicators
- Hover effects
- Smooth animations
This project is configured for automatic deployment to GitHub Pages using GitHub Actions.
- Push your code to GitHub
- Go to repository Settings → Pages
- Set Source to "GitHub Actions"
- The workflow will automatically deploy on push to main branch
Duong Tran Quang (DTDucas)
- Email: baymax.contact@gmail.com
- GitHub: @DTDucas
This project is open source and available under the MIT License.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Give a ⭐️ if this project helped you!