list 为对象列表
JsonSerializerSettings setting = new JsonSerializerSettings(); setting.NullValueHandling = NullValueHandling.Ignore; return Newtonsoft.Json.JsonConvert.SerializeObject(list, setting);