We use nested JsonObjects in our DTOs in order to have a dynamic object, Sometimes customers post data like “http://myuri.de” but in this case we run into an issue that:
var o = new JsonObject();
o.Add("url", @"http:\/\/myuri.de");
Console.WriteLine(o.ToJson());
we will get (escaped backslash):
{"url":"http:\\/\\/myuri.de"}
instead of:
{"url":"http:\/\/myuri.de"}
or better
{"url":"http://myuri.de"} like with Console.WriteLine(o["url"])
is there a way to avoid this issue?