merge json

parent 807a8e86
...@@ -16,8 +16,8 @@ def main(argv): ...@@ -16,8 +16,8 @@ def main(argv):
jsonList = list() jsonList = list()
for f in dirList: for f in dirList:
print(f) print(f)
jsonFile=json.load(open(argv[1]+f)) json_data = json.loads(open(argv[1]+f).read())
jsonFile['date'] = f[:f.find("_")] json_data['date'] = f[:f.find("_")]
# append(jsonFile) # append(jsonFile)
print(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