예제 #1
0
        public static Hashtable toHashtable(this JObject data)
        {
            string strJSON = data.ToString();

            if (string.IsNullOrEmpty(strJSON))
            {
                return(new Hashtable());
            }

            return(MiniJSONL.jsonDecode(strJSON) as Hashtable);
        }
예제 #2
0
        public static Hashtable toHashtable(this string json)
        {
            if (string.IsNullOrEmpty(json))
            {
                return(new Hashtable());
            }

            try
            {
                return(MiniJSONL.jsonDecode(json) as Hashtable);
            }
            catch (Exception ex) { }

            return(new Hashtable());
        }
예제 #3
0
 public static ArrayList toArrayList(this string json)
 {
     return(MiniJSONL.jsonDecode(json) as ArrayList);
 }