import json with open(path, "r") as file: data = json.load(file) print(json.dump(data, indent=4))