#key - loadJson & saveJson
# saveJson function
def saveJson(filename,data):
	f = open(filename, 'w')
	f.write(json.dumps(data))
	f.close()

# loadJson function
def loadJson(filename):
	if not os.path.isfile(filename): return false
	f = open(filename, 'r')
	content=f.read()
	if content=="":return {}
	return json.loads(content)