parsing configuration json and popuating the Config struct