Created
June 16, 2015 17:19
-
-
Save n370/5aed7cdfa87bbb085d89 to your computer and use it in GitHub Desktop.
Pretty prints curl's JSON response.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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