I can't believe it's not working! Here is my sample.json file:
{
"SupportedTests": [
"example1",
"example2",
"example3"
],
"ExecutableFilePath": "C:\\Program Files\\Python37\\python.exe"
}
and the python code for reading this file:
# Opening JSON file
with open('sample.json') as jsonfile:
jsonfile.seek(0)
data = json.load(jsonfile)
Here is the error messsage:
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Any idea why this is not working? It's driving me nuts! Thanks
{in the JSON, is it there in the file ?open()call would have thrown an exception