Smart json, a chrome extension for json formatting
smartJson
smartJson is a Chrome extension that provides a clean and efficient interface for JSON formatting with a convenient copy history feature. Public: https://chromewebstore.google.com/detail/smartjson/ofmhciklfaggnibalembgnlmpompepgc?utm_source=ext_app_menu
Installation
- Download or clone this repository: Github repository
- Open Chrome and navigate to
chrome://extensions
- Enable “Developer mode” in the top right corner.
- Click “Load unpacked” and select the directory containing the extension files.
Features
Simple and Intuitive Interface
- Two main text areas: one for input and one for formatted output
- Clear error messages for invalid JSON
- Character count display with a 5000 character limit
JSON Formatting
- Automatically formats and indents JSON input for improved readability
- Validates JSON syntax and displays error messages for invalid JSON
- One-click copy functionality for the formatted JSON
Copy History
- Keeps a record of the last 5 formatted JSON snippets
- Quick access to previous JSON inputs
- Option to clear the copy history
How to Use
- Click on the smartJson icon in your Chrome toolbar to open the extension.
- Enter or paste your JSON into the left text area.
- The extension will automatically format and validate your JSON.
- If valid, the formatted JSON will appear in the right text area.
- Click “Copy” to copy the formatted JSON to your clipboard.
- View your copy history below the main interface.
- Click “Input” on any history item to load it into the input area.
- Use the “Clear” button to remove all items from the copy history.