Newtonsoft.Json.dll
下载地址:http://www.newtonsoft.com/products/json/
//引用命名空间
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(string));
dt.Rows[0]["Name"] = "小棠";
//DataTable转JSON
string jsonStr = JsonConvert.SerializeObject(dt, new DataTableConverter());