I just faced this error in a weird situation. I was working with shared data and the .json files were actually pickles. Therefore, what solved that for me was:
.json
with open("pickled_file_with_bad_extension.json", "rb") as f: data = pickle.load(f)