Last active
August 29, 2015 14:16
-
-
Save jhrcz/3c027f1bafa91e37c548 to your computer and use it in GitHub Desktop.
reformat-json-pipe
This file contains 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
curl --header "PRIVATE-TOKEN: xxxx" "https://mygitlab/api/v3/projects/mynamespace%252Fmyproject" -s \ | |
| python -msimplejson.tool | |
curl --header "PRIVATE-TOKEN: xxxx" "https://mygitlab/api/v3/projects/mynamespace%252Fmyproject" -s \ | |
| python -c 'import sys; import simplejson as json; print json.dumps( json.loads( sys.stdin.read() ), sort_keys=False, indent=4); ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment