I would like to know how to read several json files from a single folder (without specifying the files names, just that they are json files).
json
Also, it
To read the json files,
import os import glob contents = [] json_dir_name = '/path/to/json/dir' json_pattern = os.path.join(json_dir_name, '*.json') file_list = glob.glob(json_pattern) for file in file_list: contents.append(read(file))