added missing ToJSON instance for ConfigWithOptions