merge json

parent 105fbfea
...@@ -16,11 +16,10 @@ def main(argv): ...@@ -16,11 +16,10 @@ def main(argv):
jsonList = list() jsonList = list()
for f in dirList: for f in dirList:
print(f) print(f)
json_data = json.loads(open(argv[1]+f).read())
json_data['date'] = f[:f.find("_")]
# append(jsonFile)
print(jsonFile) with open(argv[1]+f) as ff:
json_data = json.load(ff)
print(json_data)
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
if __name__ == "__main__": if __name__ == "__main__":
......
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