json_cleaner-0.1.4 is not a library.
json_cleaner
json_cleaner is a simple and efficient command-line tool written in Rust that removes null, empty strings (""), empty arrays ([]), and empty objects ({}) from JSON files.
This tool is built for developers who want to clean up noisy JSON data without writing custom scripts.
Features
- Recursively removes:
nullvalues- Empty strings
- Empty arrays
- Empty objects
- Reads JSON from a file
- Optionally writes output to a file or overwrites the input
- Outputs formatted (pretty-printed) JSON
- Lightweight and fast
Installation
Install directly from crates.io:
Usage
Basic usage:
With output written to another file:
Overwrite the original file in place:
Display help:
Example
Input (example.json):
Output:
License
This project is licensed under the MIT License.