public static Hashtable toHashtable(this JObject data) { string strJSON = data.ToString(); if (string.IsNullOrEmpty(strJSON)) { return(new Hashtable()); } return(MiniJSONL.jsonDecode(strJSON) as Hashtable); }
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()); }
public static ArrayList toArrayList(this string json) { return(MiniJSONL.jsonDecode(json) as ArrayList); }