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.
- 🎨 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
- Node.js 18+
- npm or yarn
- 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.
-
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
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
- Build command:
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run linter
- Aggressive caching strategies
- Automatic image optimization
- JS and CSS minification
- Static asset compression
- Security headers
- SEO optimizations
- XSS protection
- Content Security Policy
- Strict MIME type checking
- Frame protection
- Referrer Policy
This project is licensed under the MIT License.
