title | description | author | tags |
---|---|---|---|
Read JSON File |
Reads a JSON file and parses its content. |
e3nviction |
json,file,read |
import json
def read_json(filepath):
with open(filepath, 'r') as file:
return json.load(file)
# Usage:
read_json('data.json') # Returns: Content of file as dict