我已经配置了wcf服务和方法返回一些结构.问题是响应'\'中的所有符号都以'/'开头示例:
[
{
"rel":"http:\/\/localhost:3354\/customer\/1\/order",
"uri":"http:\/\/localhost:3354\/customer\/1\/order\/3"
},
{
"rel":"http:\/\/localhost:3354\/customer\/1\/order",
"uri":"http:\/\/localhost:3354\/customer\/1\/order\/5"
},
{
"rel":"http:\/\/localhost:3354\/customer\/1\/order",
"uri":"http:\/\/localhost:3354\/customer\/1\/order\/8"
}
]
Run Code Online (Sandbox Code Playgroud)
我只返回http:// localhost:3354/customer/1/order!为什么添加符号以及如何删除它们?
要么 @"http://cuustomer/1"
在json "http:\/\/cuustomer\/1"