| Crates.io | json_cleaner |
| lib.rs | json_cleaner |
| version | 0.1.4 |
| created_at | 2025-07-26 15:13:00.097321+00 |
| updated_at | 2025-07-26 15:18:31.596099+00 |
| description | A CLI tool to clean JSON files by removing null and empty values. |
| homepage | https://github.com/MaloWinrhy/json_cleaner |
| repository | https://github.com/MaloWinrhy/json_cleaner |
| max_upload_size | |
| id | 1769218 |
| size | 21,370 |
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.
null valuesInstall directly from crates.io:
cargo install json_cleaner
Basic usage:
json_cleaner --input input.json
With output written to another file:
json_cleaner --input input.json --output cleaned.json
Overwrite the original file in place:
json_cleaner --input input.json --in-place
Display help:
json_cleaner --help
example.json):{
"name": "",
"age": null,
"bio": "",
"address": {
"city": "Paris",
"zip": null,
"extra": {}
},
"tags": [],
"projects": ["EcoWeave"]
}
{
"address": {
"city": "Paris"
},
"projects": [
"EcoWeave"
]
}
This project is licensed under the MIT License.