我是用Newtonsoft.Json产生的json
JsonSerializerSettings jsetting = new JsonSerializerSettings();
jsetting.DefaultValueHandling = DefaultValueHandling.Ignore;
return JsonConvert.SerializeObject(resultMoldels, Formatting.Indented, jsetting);
但是返回回来的json为什么有这么多斜线呢?可以去除掉吗?
"{\r\n \"result\": true,\r\n \"msg\": \"OK\",\r\n \"data\": [\r\n \"success\",\r\n \"123456789\",\r\n \"987654321\"\r\n ]\r\n}"
Formatting.Indented 修改成 Formatting.None