Skip to content

Instantly share code, notes, and snippets.

@EppO
Created October 11, 2012 15:50
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 EppO/3873342 to your computer and use it in GitHub Desktop.
Save EppO/3873342 to your computer and use it in GitHub Desktop.
Format XML/JSON from command line
#XML
$ curl http://something/xml | xmllint —format -
#JSON
$ curl http://something/json | python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment