I am trying to open a JSON file in python with the following code:
import json
from pprint import pprint
with open('C:\\Users\\Dave\\Desktop\\data.json') as data_file:
data = json.load(data_file)
pprint(data)
But I get the follow error.
ValueError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
I am using the test json {'a':1}