res = "{\"msg\":\"ok\",\"code\":200,\"data\":{\"url\":\"" + img + "\"}}";
return new HttpResponseMessage { Content = new StringContent(res, System.Text.Encoding.UTF8, "application/json") };

注意 必须用 HttpResponseMessage  类型是 JSON 否者还是带反斜杠输出

相关文章:

  • 2022-01-20
  • 2022-02-09
  • 2021-12-31
  • 2021-12-31
  • 2021-11-04
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-12-31
  • 2021-05-23
  • 2021-10-27
  • 2021-12-31
相关资源
相似解决方案