Skip to content

Instantly share code, notes, and snippets.

@amiorin
Created November 24, 2014 08:52
Show Gist options
  • Save amiorin/83efd81554b57fe3a42d to your computer and use it in GitHub Desktop.
Save amiorin/83efd81554b57fe3a42d to your computer and use it in GitHub Desktop.
Pretty print json files
jq . <<< '{ "foo": "lorem", "bar": "ipsum" }'
{
"foo": "lorem",
"bar": "ipsum"
}
python -m json.tool <<< '{ "foo": "lorem", "bar": "ipsum" }'
{
"bar": "ipsum",
"foo": "lorem"
}
# http://stackoverflow.com/questions/352098/how-can-i-pretty-print-json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment