generate config from json file