I am performing a machine learning implementation on a data given in json format. I haven't tried much because I have no experience.
My code to read is:
with open('attempts.json') as my_file:
d = json.load(my_file)
I am getting error like:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I have replaced my attempts.json file which was 260mb to grades.json which is 12kb but still having same problem.
Your json file must have content and the format is correct. Based on this error, I think your json file is empty.