Created
March 21, 2012 15:35
-
-
Save hukl/2148571 to your computer and use it in GitHub Desktop.
Format / Tidy a big junk of 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
With Python | |
cat big.json | python -mjson.tool > ~/Desktop/big_tidy.json | |
With Ruby (Keeps the order of the keys in ruby 1.9.x) | |
cat big.json | ruby -e 'require "json"; puts JSON.pretty_generate(JSON.parse(STDIN.read)) ' > big_tidy.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment