joins multiple json files into one

PHOTO EMBED

Wed May 11 2022 12:35:59 GMT+0000 (Coordinated Universal Time)

Saved by @edubrigham #python

import os,json

path_to_json = 'corona/'

for file_name in [file for file in os.listdir(path_to_json) if file.endswith('.json')]:
  with open(path_to_json + file_name) as json_file:
    data = json.load(json_file)
    print(data)
content_copyCOPY