Skip to content

Latest commit

Β 

History

History
30 lines (19 loc) Β· 708 Bytes

File metadata and controls

30 lines (19 loc) Β· 708 Bytes

πŸ”§ JSON Formatter & Validator

This tool reads a JSON file, validates its structure, and outputs a neatly formatted (pretty-printed) version of it. It is helpful for debugging, reading complex JSON, or preparing JSON for documentation.


βœ… Features

  • Validates JSON input
  • Pretty-prints JSON with 4-space indentation
  • Saves the output to a new file with _formatted.json suffix
  • Simple CLI-based interaction

🧰 Requirements

  • Python 3.6 or higher
  • No external libraries needed (uses built-in json module)

πŸš€ How to Run

  1. Open terminal in this folder.
  2. Place your input JSON file in the same directory.
  3. Run the script with:
python json_formatter.py