public static Hashtable hashtableFromJson(this string json) { return(MiniJSON.jsonDecode(json) as Hashtable); }
public static Dictionary <string, object> dictionaryFromJson(this string json) { return(MiniJSON.jsonDecode(json, true) as Dictionary <string, object>); }
public static List <object> listFromJson(this string json) { return(MiniJSON.jsonDecode(json, true) as List <object>); }
// decode extensions public static ArrayList arrayListFromJson(this string json) { return(MiniJSON.jsonDecode(json) as ArrayList); }
public static string toJson(this Dictionary <string, object> obj) { return(MiniJSON.jsonEncode(obj)); }
public static string toJson(this ArrayList obj) { return(MiniJSON.jsonEncode(obj)); }
// encode extensions public static string toJson(this Hashtable obj) { return(MiniJSON.jsonEncode(obj)); }