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

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