Example #1
0
 public static Hashtable hashtableFromJson(this string json)
 {
     return(MiniJSON.jsonDecode(json) as Hashtable);
 }
Example #2
0
 public static Dictionary <string, object> dictionaryFromJson(this string json)
 {
     return(MiniJSON.jsonDecode(json, true) as Dictionary <string, object>);
 }
Example #3
0
 public static List <object> listFromJson(this string json)
 {
     return(MiniJSON.jsonDecode(json, true) as List <object>);
 }
Example #4
0
 // decode extensions
 public static ArrayList arrayListFromJson(this string json)
 {
     return(MiniJSON.jsonDecode(json) as ArrayList);
 }
Example #5
0
 public static string toJson(this Dictionary <string, object> obj)
 {
     return(MiniJSON.jsonEncode(obj));
 }
Example #6
0
 public static string toJson(this ArrayList obj)
 {
     return(MiniJSON.jsonEncode(obj));
 }
Example #7
0
 // encode extensions
 public static string toJson(this Hashtable obj)
 {
     return(MiniJSON.jsonEncode(obj));
 }