Invalid format with Json when converting DataTable with Json.Net
问题 I'm trying to convert DataTable to JSON using Newtonsoft.JSON but found that the output is not what ExtJS grid and chart would expect. My code is string output = JsonConvert.SerializeObject(dt, Formatting.Indented, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }); and this returns Json string as "[{\"DAYDATE\":\"2012-05-22T00:15:00\",\"SERIES1\":3.65}]" If I remove '\' and start and end double quotes it works fine with ExtJS. I also tried changing date