I have a json file that fails loading when I use the following code:
indices_json_path = \'file.json\' with open(indices_json_path) as json_data: d = json.lo
This solved the problem:
with io.open(indices_json_path,'r', encoding='UTF-16-LE') as json_data: d = json.load(json_data)
I would probably guess it is an encoding error, try:
import io with io.open(indices_json_path,'r',encoding='utf8') as json_data: d = json.load(json_data)