Created
June 2, 2014 08:18
-
-
Save lielran/075cc7ee24564067994f to your computer and use it in GitHub Desktop.
Python -Sonar Json parsing
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
http://www.cambus.net/parsing-json-from-command-line-using-python/ | |
curl -v --user sonar:sonar "http://sonar.sonar.com:9000/api/resources?resource=[project:sonar:key]&metrics=coverage" | python -c 'import sys, json; print json.load(sys.stdin)[0]["msr"][0]["frmt_val"]' |
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
http://www.cambus.net/parsing-json-from-command-line-using-python/ | |
curl -v --user sonar:sonar "http://sonar.sonar.com:9000/api/resources?resource=[project:sonar:key]&metrics=it_coverage" | python -c 'import sys, json; print json.load(sys.stdin)[0]["msr"][0]["frmt_val"]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment