8000 GitHub - masdzub/json-formatter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

masdzub/json-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Formatter

This is a simple web application that helps you format your JSON data for better readability.

Features

  • Format JSON: Easily format your JSON code with proper indentation.
  • Paste or Upload: Paste your JSON directly into the text area or upload a JSON file.
  • Auto-resize: The input and output areas automatically adjust their height based on the content.
  • Copy to Clipboard: Copy the formatted JSON to your clipboard with a single click.
  • Clear: Clear both the input and output areas.
  • Error Handling: Handles invalid JSON input and provides an error message.
  • Dark Mode: Uses a default dark theme for better readability.

How to Use

  1. Open the index.html file in your web browser.
  2. Paste your JSON: Paste your JSON code directly into the "JSON Input" text area.
  3. OR Upload a JSON File: Click the "Select JSON File" button and choose your file.
  4. Click the "Format JSON" button to format your code.
  5. The formatted JSON will be displayed in the "Formatted JSON" section.
  6. Click the "Copy JSON" button to copy the formatted JSON to your clipboard.
  7. Use the "Clear" button to clear both input and output areas.

Technologies Used

  • HTML
  • CSS (Tailwind CSS)
  • JavaScript
  • Clipboard.js

Running Locally

  1. Clone this repository.
  2. Open the index.html file in your web browser.

Note: This application is designed to run as a standalone HTML file. No server-side configuration is required.

License

This JSON Formatter is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0