Created
January 2, 2017 01:38
-
-
Save 421p/96a97ecf9d6a924a729a5134b36d3740 to your computer and use it in GitHub Desktop.
minify json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
file_put_contents($argv[1], json_encode(json_decode(file_get_contents($argv[1]), true))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment