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

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