reading config from json