Skip to content

Instantly share code, notes, and snippets.

@goofyahead
Last active April 4, 2018 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofyahead/ea495ed9772f9b13a1988ba9fb1b061f to your computer and use it in GitHub Desktop.
Save goofyahead/ea495ed9772f9b13a1988ba9fb1b061f to your computer and use it in GitHub Desktop.
prettify json response with curl
curl http://10.129.7.183:1337/jsonendpoint -H 'Authorization: XXXXX' | node <<< "var o = $(cat); console.log(JSON.stringify(o, null, 4));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment