Your quick reference

Select a language to view its starter snippet.

Python · Read a JSON file

A practical placeholder for a common data task.

import json

with open("data.json", encoding="utf-8") as file:
    data = json.load(file)

print(data)