reading config from json file