The Json.NET homepage says the project started out as :
a couple of static methods for escaping JavaScript strings
Do these methods still exist? I'm aware that JavaScriptSerializer can do this, but I'm after a one liner to do this.
SerializeObject
can serialize a single string (which escapes it) but it returns the quotes
JsonConvert.SerializeObject(@"hi bud's \no way\");
Returns: "hi bud's \\no way\\"