正文WebApi中直接返回json字符串的方法IP云V管理员/2022-11-29/1 阅读 11/29提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 [HttpPost] public HttpResponseMessage Upload() { string json = "{\"result\":\"true\"}"; return new HttpResponseMessage { Content = new StringContent(json, System.Text.Encoding.UTF8, "application/json") }; }