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


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.


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

Note: Output file will be overwritten if it exists.