import json
with open("data.json", "r") as f:
data = json.load(f)
print(data)
Thats the py code.
{
"test":"Hi"
"things": [
{
"name":"Stack"
"lastname":"Overflow"
}
]
}
That's the JSON file.
The JSON and python file are in the same folder and I don't get it why it does not find the file.