changing config file to json