read config from json file