Dr-Json is a web application that allows you to format and minify JSON data with ease. It provides a simple and intuitive user interface where you can paste your JSON data, and it will automatically format it to improve readability or minify it to reduce the size. Additionally, Dr-Json provides a "Copy to Clipboard" feature for both the input and output JSON data.
- Format JSON: Beautify and indent the JSON data for improved readability.
- Minify JSON: Remove unnecessary white spaces and new lines to reduce the JSON size.
- Copy to Clipboard: Easily copy the formatted or minified JSON data to the clipboard.
- Error Handling: Display informative alert messages for invalid JSON or other errors.
- Responsive Design: The app is designed to work well on different screen sizes and devices.
A live demo of Dr-Json is available at https://dr-json-niteshpk.vercel.app/.
To run Dr-Json locally, follow these steps:
-
Clone the repository:
git clone https://github.com/niteshpk/dr-json.git
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The app should now be running at http://localhost:5173/.
Dr-Json is built using the following main dependencies:
- React: A JavaScript library for building user interfaces.
- react-bootstrap-sweetalert: A library for displaying alert messages with a Bootstrap-style UI.
For the full list of dependencies, please refer to the package.json
file.
Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or submit a pull request.
Please make sure to follow the existing coding style and conventions.
Dr-Json is released under the MIT License.