changes config to json config