public static string JsonConvertByNewtonsoftJsonAll(object obj)
{
try
{
IsoDateTimeConverter timeFormat = new IsoDateTimeConverter();
timeFormat.DateTimeFormat = "yyyy-MM-dd HH:mm:ss";
string convert = JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.None, timeFormat);
return convert;
}
catch (Exception ex)
{
throw ex;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货