Class JacksonUtils


  • public class JacksonUtils
    extends Object
    • Constructor Detail

      • JacksonUtils

        public JacksonUtils()
    • Method Detail

      • fromJson

        public static <T> T fromJson​(String jsonStr,
                                     com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
      • fromJson

        public static <T> T fromJson​(String jsonStr,
                                     Class<T> type)
      • fromJson

        public static <T> T fromJson​(byte[] bytes,
                                     com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
      • fromJson

        public static <T> T fromJson​(byte[] bytes,
                                     Class<T> type)
      • toJsonString

        public static String toJsonString​(Object obj)
      • toJsonByte

        public static byte[] toJsonByte​(Object obj)