Open the file in read mode

with open('data.json', 'r', encoding='utf-8') as file: # Load the JSON data into a Python dictionary data = json.load(file)