json中的转义字符的处理

 HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json") };//这里是去掉反斜杠再放回出去,json就只剩下双引号。
        return result;

 

posted @ 2019-03-22 15:40  Code麒麟  阅读(8058)  评论(0编辑  收藏  举报