A simple CLI tool to pretty print your JSON.
-
Pretty Printing: Meow automatically formats JSON data with proper indentation and line breaks, ensuring that the output is clean and well-organized. This makes it easier to read and understand complex JSON structures.
-
Color-Coded Output: To further enhance readability, Meow highlights different JSON data types with distinct colors:
- Strings: Green
- Booleans: Yellow
- Numbers: Magenta
- Map Keys: Cyan
-
CLI Integration: Meow seamlessly integrates with the command line, supporting input redirection and pipes. This allows users to easily format JSON data from files, APIs, or other command-line tools.
- Java 17 or higher
-
Download the JAR file
Download the latest
meow.jar
from the releases page. -
Run the tool
To pretty print JSON, run the following command:
echo '{"=-..-=": "MEOW"}' | java -jar meow.jar
-
Create a Script for Convenience
You can create a shell script to make running the tool easier. Create a
meow.sh
file with the following content:#!/bin/bash java -jar meow.jar "$@"
Make the script executable:
chmod +x meow.sh
Now, you can use the script to pretty print JSON:
echo '{"=-..-=": "MEOW"}' | ./meow.sh
Meow can be used in various ways:
-
From a file:
java -jar meow.jar < file.json
-
From a URL:
curl -s https://api.example.com/data | java -jar meow.jar
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to open issues or submit pull requests for any improvements or features you would like to see. Contributions are welcome!