Move config to .json file