Skip to content

Instantly share code, notes, and snippets.

@Chandler
Created October 14, 2013 20:54
Show Gist options
  • Save Chandler/6982029 to your computer and use it in GitHub Desktop.
Save Chandler/6982029 to your computer and use it in GitHub Desktop.
pretty print json
node -e "console.log(JSON.stringify(JSON.parse(require('fs').readFileSync(process.argv[1])), null, 4));" ugly.json > pretty.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment