# convert dictionary to string: jsonStr = json.dumps(dic) #convert string to json object json = json.loads(jsonString)