Exemple #1
0
 public static object FromJson(this string content, object defaultValue)
 {
     return(SimpleJson.Resolve().DeserializeObject(content, defaultValue));
 }
Exemple #2
0
        public static T FromJson <T>(this string content, T defaultValue)
        {
            var instance = SimpleJson.Resolve().DeserializeObject(content, defaultValue);

            return(instance);
        }
Exemple #3
0
 public static string ToJson(this object value, bool indented)
 {
     return(SimpleJson.Resolve().SerializeObject(value, indented));
 }