Beispiel #1
0
 public static T JsonToObject <T>(this string str, bool include_null             = false, int?max_depth    = ClientUtil.DefaultMaxDepth) => ClientUtil.Deserialize <T>(str, include_null, max_depth);
Beispiel #2
0
 public static object JsonToObject(this string str, Type type, bool include_null = false, int?max_depth    = ClientUtil.DefaultMaxDepth) => ClientUtil.Deserialize(str, type, include_null, max_depth);
Beispiel #3
0
 public static string ObjectToJson(this object obj, bool include_null            = false, bool escape_html = false, int?max_depth = ClientUtil.DefaultMaxDepth, bool compact = false, bool reference_handling = false) => ClientUtil.Serialize(obj, include_null, escape_html, max_depth, compact, reference_handling);