file = 'test.json'
fp = open(file, 'r')
dict = json.dump(fp.read())
fp.close()
#寫
testDict = {'a':1,'b':2}
file = 'my.json'
fp = open(file,'w+')
fp.write(json.loads(testDict))