ca5
2/27/2014 - 1:48 PM

json_decode

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()