import json

# Writing to the file
somedict = {'word': 'definition'}
f = open('somefile.json', 'w')
json.dump(somedict, f)
f.close()

# and now let's read it from the file
f = open('somefile.json')
somedict = json.load(f)
print somedict