I am facing with the following error while reading json from file
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 1 (char 948)
The json content is read from file using the script below
import json
if __name__ == "__main__":
file_path = "D:\\Freelancing\\Scraping_football_historic_data\\Data\\1.138103502"
with open(file_path,'r') as datafile:
dict_data = json.load(datafile)
print(dict_data)
Upon searching for answer, this question had an answer that suggested me to add r before the json string.
How can it be done in the case above, or if there's a better way to read the file. ?
The contents of the file can be read from the pastebin link: https://pastebin.com/ZyyrtcZW