import json f = open('./config/config.json') data = json.load(f) database = data.get("database");