Newtonsoft.Json 中 json数据中的 null如何转换成 ""?个人只看到一个忽略空值的属性
JsonSerializerSettings jsetting=new JsonSerializerSettings(); jsetting.NullValueHandling = NullValueHandling.Ignore;
json:
{ Name = "Jack", Age = 31, Gender = "Male", DepartmentName = "Personnel Department", Leader = null } 转换的结果:
{ Name = "Jack", Age = 31, Gender = "Male", DepartmentName = "Personnel Department", Leader = ""} 如何使json串中的 null能转成 "" ,求解!
慕容3067478
临摹微笑
相关分类