json_decode
#!/usr/bin/python import sys import json args = sys.argv args.pop(0) for line in sys.stdin: dic = json.loads(line.strip()) print "\t".join([dic[arg] for arg in args]) sys.stdout.flush()