A Chrome extension that automatically detects and formats JSON content on any webpage with syntax highlighting.
- 🔍 Auto-Detection: Automatically detects JSON content on any webpage
- 🎨 Syntax Highlighting: Beautiful syntax highlighting using Prism.js
- 🌙 Dark Mode: Easy-to-read dark theme for better visibility
- 🚀 Fast: Instantly formats JSON as soon as content is detected
- 📱 Responsive: Works well with any JSON content size
- 🔄 Format Anywhere: Works not just with .json files but any webpage containing valid JSON
- Clone this repository
git clone https://github.com/thiengo105/json-formatter.git
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
The extension automatically:
- Detects if a webpage contains valid JSON content
- Formats the JSON with proper indentation
- Applies syntax highlighting for better readability
- Presents the formatted JSON in a dark theme
json-formatter/
├── manifest.json # Extension configuration
├── content.js # Main JSON detection and formatting logic
├── prism.js # Syntax highlighting library
├── prism.css # Syntax highlighting styles
└── icons/ # Extension icons
├── icon16.png # Icon for extension list
├── icon48.png # Icon for Chrome Web Store
└── icon128.png # Large icon for Chrome Web Store
- Google Chrome browser
- Basic knowledge of JavaScript
- Text editor or IDE
- Make changes to the source code
- Go to
chrome://extensions/ - Click the reload button on the extension card
- Test your changes
- Fork the repository
- Create your 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
This project is licensed under the MIT License - see the LICENSE file for details
- Thien Ngo - thiengo105
- Prism.js for the syntax highlighting functionality