jfmt is a command-line application for parsing and formatting JSON text. It reads JSON input from the terminal, formats it for readability, and outputs the formatted JSON to the terminal.
- Parse and format JSON text
- Output formatted JSON to the terminal
- Simple and easy-to-use command-line interface
To build and install jfmt
, you need to have Rust installed on your system.
-
Clone the repository:
git clone https://github.com/vbergae/jfmt.git cd jfmt
-
Build the project:
cargo build --release
-
Install the application:
cargo install --path .
jfmt < data.json
echo '{"name":"John","age":30,"city":"New York"}' | jfmt
To contribute to jfmt
, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes and commit them.
- Push your changes to your fork.
- Create a pull request to the main repository.
To run the tests for jfmt
, use the following command:
cargo test
This project is licensed under the GPL v3 License. See the LICENSE file for details.
This project includes files that are licensed under the Apache License, Version 2.0. Specifically, the following file(s):
src/json.pest
These files retain their original license. You may not use these files except in compliance with the Apache License, Version 2.0. You may obtain a copy of the license at http://www.apache.org/licenses/LICENSE-2.0.
For any questions or feedback, please open an issue on the GitHub repository or contact the project maintainer.
Happy formatting!