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

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