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