merge json

parent 807a8e86
......@@ -16,8 +16,8 @@ def main(argv):
jsonList = list()
for f in dirList:
print(f)
jsonFile=json.load(open(argv[1]+f))
jsonFile['date'] = f[:f.find("_")]
json_data = json.loads(open(argv[1]+f).read())
json_data['date'] = f[:f.find("_")]
# append(jsonFile)
print(jsonFile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment