I have an issue opening a pretty basic json file just as a test and I am getting the following output:
\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Here is the python code:
import json
with open('test1.json') as f:
data = json.load(f)
print(data)
Here is the test.json contents:
{ "Days" : [
{
"Date": "04-04-13",
"Price": "1.61"
},
{
"Date": "04-11-13",
"Price": "1.61"
}
]
}
Any help much appreciated, thank you!