标签:
1>序列化,时间格式化处理
JsonConvert.SerializeObject(Iar, new JsonSerializerSettings() { DateFormatString = "yyyy-MM-dd" })
2>反序列化,时间格式为空的处理
JsonConvert.SerializeObject(Iar, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore})
标签:
原文地址:http://www.cnblogs.com/guohu/p/4589095.html