Newtonsoft提供的将DataTable转成Json:
////// DataTable转Json /// /// ///public static string ToJson(this DataTable dt) { return Newtonsoft.Json.JsonConvert.SerializeObject(dt, Newtonsoft.Json.Formatting.None, new Newtonsoft.Json.Converters.DataTableConverter()); }