Skip to content

Reformat JSON data files for easier reading and editing

Reformatted JSON data files using the json module from the Python standard library:

>>> import glob
>>> import json
>>> for filename in glob.glob('**/*.json', recursive=True):
...     with open(filename, 'r') as f:
...         data = json.load(f)
...     with open(filename, 'w') as f:
...         json.dump(data, f, indent=4)
...

Merge request reports

Loading