var result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(dto2), Encoding.GetEncoding("UTF-8"), "application/json") };
.net web api 返回的是xml
原文:https://www.cnblogs.com/WeiYongZhi/p/11918353.html