コード例 #1
0
def writeJson(jsonObj, jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'w')
    json.dump(jsonObj, jsonFile, encoding='utf-8')
    jsonFile.close()
コード例 #2
0
ファイル: jsonutil.py プロジェクト: cmdnath/innovate-dev
def writeJson(jsonObj, jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'w')
    json.dump(jsonObj, jsonFile, encoding='utf-8')
    jsonFile.close()
コード例 #3
0
def readJson(jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'r')
    jsonObj = json.load(jsonFile, encoding='utf-8')
    jsonFile.close()
    return jsonObj
コード例 #4
0
ファイル: jsonutil.py プロジェクト: cmdnath/innovate-dev
def readJson(jsonFilePath):
    jsonFile = fileutil.openFile(jsonFilePath, 'r')
    jsonObj = json.load(jsonFile, encoding='utf-8')
    jsonFile.close()
    return jsonObj