PurplePen.Updater.JsonEncode C# (CSharp) Method

JsonEncode() static private method

static private JsonEncode ( string s ) : string
s string
return string
        static string JsonEncode(string s)
        {
            if (s == null)
                s = "";
            return s.Replace("\\", "\\\\").Replace("\"", "\\\"");
        }