} // constructor private static string jsonEncode(string s) { s = s.Replace(Environment.NewLine, " "); s = s.Replace("\n", " "); s = s.Replace("\r", " "); return(StringUtils.AddSlashes(s)); }