Example #1
0
        /// <summary>Gets this cache info as a JSON string.
        /// Returns null if it's empty.</summary>
        public string ToJSONString()
        {
            // Get JSON:
            JSObject json = ToJson();

            if (json == null)
            {
                return(null);
            }

            // Write it out:
            return(json.ToJSONString());
        }
Example #2
0
 /// <summary>Writes a JSON object to a string.</summary>
 public static string Stringify(JSObject jsonObject)
 {
     return(jsonObject.ToJSONString());
 }
Example #3
0
//--------------------------------------