I am using the excellent Json.Net library to serialize my entities generated by entity framework. I use the following code to do so :
using (MyVoucherEntities context = new MyVoucherEntities())
List<MyObject> list = context.MyObjects.ToList();
string json = JsonConvert.SerializeObject(list);
\"Title\": \"Here is a title\"
Ok I found the reason why I had escape characters in my string ("\") ... After serializing my objects, I am returning the json string to the client app through a WCF. Apparently, WCF is automatically adding these characters to the string before sending it to the network. It is a default behavior and is apparently mandatory.
As I didn't want these escape characters, the workaround is to change the return type of the service to Stream and so, returning your json string inside a memory stream. It works perfectly and is quiet fast.
Thx @Jon Skeet and @Chris for your help !