Skip to content

Instantly share code, notes, and snippets.

@alivesay
Created July 19, 2013 01:59
Show Gist options
  • Save alivesay/6034533 to your computer and use it in GitHub Desktop.
Save alivesay/6034533 to your computer and use it in GitHub Desktop.
minimal python to extract json value from stdin
import json
import sys
if __name__ == "__main__":
data = json.loads(sys.stdin.read())
print data[sys.argv[1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment