A beautiful, modern JSON parser and formatter built with React. Parse, validate, and format your JSON with an intuitive dark-themed interface featuring animated gradients and smooth interactions.
- Real-time JSON Parsing - Instantly parse and format your JSON
- Error Detection - Clear error messages when JSON is invalid
- Beautiful Dark UI - Animated gradient background with dark blues, blacks, and greenish tones
- Side-by-Side Layout - Input on the left, formatted output on the right
- One-Click Copy - Copy formatted JSON to clipboard with visual feedback
- Syntax Highlighting - Color-coded output for better readability
- Responsive Design - Works seamlessly on desktop and mobile devices
- Glassmorphism Effects - Modern UI with backdrop blur and transparency
- React - Frontend framework
- CSS3 - Styling with animations and glassmorphism
- JavaScript ES6+ - Modern JavaScript features
- Clipboard API - Copy to clipboard functionality
- Clone the repository:
git clone https://github.com/ayuboketch/json-viewer.git
cd json-viewer- Install dependencies:
npm install- Start the development server:
npm start- Open http://localhost:3000 in your browser
- Paste your JSON into the input field on the left
- Click "Parse JSON" to validate and format
- View the formatted output on the right side
- Click "Copy" to copy the formatted JSON to your clipboard
- If there's an error, you'll see a detailed error message
{"name":"John","age":30,"city":"New York"}{
"name": "John",
"age": 30,
"city": "New York"
}json-viewer/
├── public/
├── src/
│ ├── App.js # Main component
│ ├── App.css # Styling and animations
│ ├── parserLogic.js # JSON parsing logic
│ └── index.js # Entry point
├── package.json
└── README.md
The background features a dynamic gradient that shifts between dark blues, blacks, and greenish tones, creating a modern and engaging visual experience.
When invalid JSON is detected, the app provides clear error messages that help users identify and fix issues like:
- Missing commas
- Unclosed brackets
- Invalid quotes
- Syntax errors
The copy button provides instant visual feedback, changing to "✓ Copied!" for 2 seconds after successfully copying to clipboard.
Contributions are welcome! Feel free to:
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Minify JSON option
- Download formatted JSON as file
- Syntax highlighting with line numbers
- Dark/Light theme toggle
- JSON tree view
- Compare two JSON objects
- Validate against JSON Schema
This project is licensed under the MIT License - see the LICENSE file for details.
Ayub Oketch
- GitHub: @ayuboketch
- LinkedIn: Ayub Oketch
- Inspired by modern JSON viewing tools
- Built with Create React App
- Design inspired by glassmorphism and dark UI trends
⭐ If you found this project helpful, please give it a star!