程序包 cn.gybyt.util

类 JackSonUtil


  • public class JackSonUtil
    extends Object
    JackSonUtil工具类
    • 构造器详细资料

      • JackSonUtil

        public JackSonUtil()
    • 方法详细资料

      • toJson

        public static String toJson​(Object o)
        序列化
        参数:
        o -
        返回:
      • toObject

        public static <T> T toObject​(String json,
                                     Class<T> type)
        反序列化
        参数:
        json -
        type -
        返回:
      • toObject

        public static <T> T toObject​(String json,
                                     String className)
        反序列化
        参数:
        json -
        className -
        返回: