예제 #1
0
 public static string toJson(this IList obj)
 {
     return(Json.encode(obj));
 }
예제 #2
0
 public static List <object> listFromJson(this string json)
 {
     return(Json.decode(json) as List <object>);
 }
예제 #3
0
 public static Dictionary <string, object> dictionaryFromJson(this string json)
 {
     return(Json.decode(json) as Dictionary <string, object>);
 }
예제 #4
0
 public static string toJson(this IDictionary obj)
 {
     return(Json.encode(obj));
 }