Skip to content

Instantly share code, notes, and snippets.

@rm--
Created December 20, 2014 14:09
Show Gist options
  • Save rm--/af17c7484d5cb8e2ea10 to your computer and use it in GitHub Desktop.
Save rm--/af17c7484d5cb8e2ea10 to your computer and use it in GitHub Desktop.
get json from url and save it to file with correct indentation

get json file and save them with human-readable indentation

general:

curl <url> | python -m json.tool > <filename>

example:

curl https://api.discogs.com/artists/1888818/releases | python -m json.tool > msott.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment