随笔分类 -  Json.net

Newtonsoft.Json序列化字符串-格式化和时间格式问题
摘要:最近C#中需要将实体进行json序列化,使用了Newtonsoft.Json public static void TestJson() { DataTable dt = new DataTable(); dt.Columns.Add("Age", Type.GetType("System.Int3 阅读全文

posted @ 2018-10-21 19:05 asdyzh 阅读(356) 评论(0) 推荐(0)

Json.net的常用语句JsonConvert.SerializeObject(对象)
摘要:在ajax的已不请求中,常常返回json对象。可以利用json.net给我们提供的api达到快速开发。 例子: using System;using System.Collections;using System.Configuration;using System.Data;using Syste 阅读全文

posted @ 2018-10-21 19:01 asdyzh 阅读(1268) 评论(0) 推荐(0)

导航