data-manipulation/dm.py

18 lines
427 B
Python

# -*- coding: utf-8 -*-
import sys, json, locale
reload(sys)
sys.setdefaultencoding('UTF-8')
sys.setdefaultencoding(locale.getpreferredencoding())
#locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8')
table_list = open("tables.json", "r")
data = json.load(table_list)
tDescr = data["tables"][0]["tableDescription"]
tName = data["tables"][0]["tableName"]
fList = data["tables"][0]["fList"]
print(tName)
print(tDescr)
print(fList)