JSON Viewer
A modern and beautiful JSON viewer and formatter built with Next.js and Tailwind CSS. View, edit, and format JSON with syntax highlighting and a simplified view.

Features
- ๐จ Beautiful Syntax Highlighting: Color-coded JSON for better readability
- ๐ Simplified View: A clean, easy-to-read view of your JSON data
- ๐ Dark/Light Mode: Switch between themes for comfortable viewing
- ๐ Multi-language Support: Available in:
- English
- Spanish
- French
- German
- Portuguese
- ๐ JSON Formatting: Automatically format and validate your JSON
- ๐ค Export: Save your formatted JSON to a file
- ๐ File Upload: Drag & drop or select JSON files to load
- ๐งน Clear Function: Easily clear the editor content
Technologies Used
Getting Started
Prerequisites
Installation
Clone the repository:
git clone https://github.com/JairoMS27/json-viewer.git
cd json-viewer
Install dependencies:
npm install
# or
yarn install
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Usage
Input JSON:
- Paste your JSON directly into the editor
- Click the upload button to select a JSON file
- Drag & drop a JSON file directly into the editor
Format: Click the "Format JSON" button to automatically format your JSON
View: See the formatted JSON with syntax highlighting on the left and a simplified view on the right
Export: Click "Export JSON" to save your formatted JSON to a file
Theme: Toggle between light and dark mode using the theme switcher
Language: Select your preferred language from the language dropdown
๐ Netlify Deployment
This project is optimized for Netlify deployment with performance best practices.
Project Preparation
- Ensure your project is in a Git repository (GitHub, GitLab, etc.)
- Project is configured for static builds with
output: 'standalone'
Netlify Setup
- Connect your repository to Netlify
- Build settings will be automatically configured via
netlify.toml
- Default configuration includes:
- Build command:
npm run build
- Publish directory:
.next
- Optimized caching
- Asset compression
- Security headers
๐ Available Scripts
npm run dev
- Start development server
npm run build
- Build for production
npm run start
- Start production server
npm run lint
- Run linter
- Aggressive caching strategies
- Automatic image optimization
- JS and CSS minification
- Static asset compression
- Security headers
- SEO optimizations
๐ Security Features
- XSS protection
- Content Security Policy
- Strict MIME type checking
- Frame protection
- Referrer Policy
Author
Acknowledgments
๐ License
This project is licensed under the MIT License.