using Newtonsoft.Json;using Newtonsoft.Json.Converters;
string result = JsonConvert.SerializeObject(dt, new DataTableConverter());