Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
import json
from pprint import pprint as pp
import sys
def read_json(fname):
json_data=open(fname).read()
return json.loads(json_data)
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.exit("provide file")
fname = sys.argv[1]
data = read_json(fname)
pp(data)