I am getting a bit of headache just because a simple looking, easy statement is throwing some errors in my face.
I have a json file called strings.json like this:
The problem is using with statement:
with open('strings.json') as json_data: d = json.load(json_data) pprint(d)
The file is going to be implicitly closed already. There is no need to call json_data.close() again.
json_data.close()