I have this JSON file, called my_file.json
:
{
"t shirt": [
"tee"
],
"neck": [
"neckline"
],
"grey": [
"gray"
]
}
I am reading it with:
f = open('my_file.json', 'r')
json.load(f)
I get the exception ValueError("No JSON object could be decoded")
, as if the file wasn't valid JSON, which it actually is (even checked it with a validator).
What's wrong?