C#WebAPI返回json去掉双引号前面的反斜杠

string str="{\"msgType\":1001,\"msgstring\":\"信息\"}";//这里是你的json带有反斜杠的 HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "applicati
相关文章
相关标签/搜索