Newtonsoft.Json.JsonSerializerSettings jSetting = new Newtonsoft.Json.JsonSerializerSettings();
jSetting.NullValueHandling = Newtonsoft.Json.NullValueHandling.Include;
jSetting.DateFormatString = "yyyy-MM-dd HH:mm:ss";
sbContent.Append(JsonConvert.SerializeObject(gameresult,jSetting).Replace(":null,",":\"\",").Replace(":null},":\"\"},")); 原文链接:https://www.f2er.com/json/289876.html