The Json.NET homepage says the project started as:
some static methods for escaping javascript strings
Are these methods persisted? I know that JavaScriptSerializer can do this, but I have to make one liner for this.
SerializeObject can serialize a single line (which escapes from it), but returns quotation marks
JsonConvert.SerializeObject(@"hi bud \no way\");
Returns: "hi bud \\no way\\"
source share