【发布时间】:2017-06-28 06:18:59
【问题描述】:
我花了一些时间试图弄清楚这一点,所以我决定在这里发布 - 希望它可以节省一些时间给其他人。
我正在构建一个 ASP.Net Core Web API MVC 应用程序,该应用程序接受 Get 请求并调用外部 API(在本例中为 Bing Image Search)。返回结果时,它会给我一个转义的 Json 字符串。示例:
"{\"_type\": \"Images\", \"instrumentation\": {\"pageLoadPingUrl\": \"https:...}
代替:
{
"_type": "Images",
"instrumentation": {
"pageLoadPingUrl": "https:....
}
然后,我想将它传回给我的网络客户端,但没有成功。
我将很快发布我是如何解决它的。
干杯!
【问题讨论】:
标签: c# asp.net json asp.net-web-api asp.net-core