Replacing escape characters from JSON

I have found that the easiest and best way to remove all escape characters from your JSON string, is to pass the string into Regex.Unescape() method.
This method returns a new string with no ecapes, even \n \t etc, are removed.

See this MSDN article for more details:
Regex.Unescape Method (String) (System.Text.RegularExpressions)

Leave a Comment