Last post Jun 22, 2009 10:30 PM by email@example.com
Jun 13, 2009 02:23 AMfirstname.lastname@example.org|LINK
In all JSON returns of my collection services, the char "/" in the 'EditLink' string changes to "\/" (it is '\' and '/', not "V"), are yours the same? It does not look pretty. Anyone knows why and has any idea how to make it back to '/'?
Jun 19, 2009 07:19 PM|Yavor Georgiev - MSFT|LINK
This MSDN topic metnions that all instances of / will always be
escaped when you use the WCF JSON serializer. The reason for that is rather complex but has to do with the way the DateTime type is serialized. I don't think there is a way to get the serializaer to behave differently.
Jun 22, 2009 09:32 AMemail@example.com|LINK
Thank you! Yavor,
You mean we can not change this? And when I consume the service in Ajax using XMLHttpRequest, the ResponseText still includes \/ . How did you do that? Thanks in advance.
Jun 22, 2009 01:49 PM|Yavor Georgiev - MSFT|LINK
Jun 22, 2009 10:30 PMfirstname.lastname@example.org|LINK
I've got it. But i still expect the JSON response gets normal, hoping MS will concern this small problem.