Python Read JSON -Datei
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
print(data)
MzanziLegend
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
print(data)
import json
with open('path_to_file/person.json') as f:
data = json.load(f)
import json
data = {"key": "value"}
with open('data.json', 'w') as jsonfile:
json.dump(data, jsonfile)
import json
with open('data.txt') as json_file:
data = json.load(json_file)
import json
with open('file_to_load.json', 'r') as file:
data = json.load(file)
import json
with open('json_data.json') as json_file:
data = json.load(json_file)
print(data)