示例#1
0
 public static T FromJson <T>(this string json, T defaultValue)
 {
     return(MyJsonHelper.Resolve().DeserializeObject <T>(json, defaultValue));
 }
示例#2
0
 public static string ToJson(this object value, bool indented)
 {
     return(MyJsonHelper.Resolve().SerializeObject(value, indented));
 }