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