Example #1
0
def writeJson(jsonObj, jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'w')
    json.dump(jsonObj, jsonFile, encoding='utf-8')
    jsonFile.close()
Example #2
0
def writeJson(jsonObj, jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'w')
    json.dump(jsonObj, jsonFile, encoding='utf-8')
    jsonFile.close()
Example #3
0
def readJson(jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'r')
    jsonObj = json.load(jsonFile, encoding='utf-8')
    jsonFile.close()
    return jsonObj
Example #4
0
def readJson(jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'r')
    jsonObj = json.load(jsonFile, encoding='utf-8')
    jsonFile.close()
    return jsonObj