/// <summary> /// /// </summary> /// <param name="data"></param> /// <param name="type"></param> /// <returns></returns> public object Deserialize(byte[] data, Type type) { return(JsonUtils.DeserializeCustom(_encoding.GetString(data), type)); }
/// <summary> /// /// </summary> /// <param name="obj"></param> /// <returns></returns> public byte[] Serialize(object obj) { return(_encoding.GetBytes(JsonUtils.SerializeCustom(obj))); }