Compress JSON files
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
JSONCompactor.java
README.md

README.md

JSONCompactor

Compress JSON files by removing unnecessary white space.

Pretty basic, but does a good job (~12-18% compression for most files). Takes around 4 minutes per GB on a typical machine.

Usage:

java JSONCompactor /path/to/input/file.json /path/to/output/file.json

Note: Output file will be overwritten if it exists.