Skip to content

Instantly share code, notes, and snippets.

@n370
Created June 16, 2015 17:19
Show Gist options
  • Select an option

  • Save n370/5aed7cdfa87bbb085d89 to your computer and use it in GitHub Desktop.

Select an option

Save n370/5aed7cdfa87bbb085d89 to your computer and use it in GitHub Desktop.
Pretty prints curl's JSON response.
#! /bin/bash
curl -H "Content-Type: application/json" -X POST -d '{"some":"json"}' https://my.endpoin.net/ | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment