WCF + json. WCF response invalid not expected string.

Posted by Evgeny on Stack Overflow See other posts from Stack Overflow or by Evgeny
Published on 2011-03-18T16:07:42Z Indexed on 2011/03/18 16:10 UTC
Read the original article Hit count: 164

Filed under:
|
|
|

I have configured wcf service and method which return some structure. The problem that all symbols in response '\' begins with '/' Example:

    [
   {
      "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"
   }
]

And i return only http:\localhost:3354\customer\1\order ! Why that symbols added and how can i remove them?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET