类 JsonUtils

java.lang.Object
org.ssssssss.magicapi.utils.JsonUtils

public class JsonUtils extends Object
JSON工具包
作者:
mxd
  • 字段详细资料

    • MAPPER

      private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
    • logger

      private static final org.slf4j.Logger logger
  • 构造器详细资料

    • JsonUtils

      public JsonUtils()
  • 方法详细资料

    • toJsonString

      public static String toJsonString(Object target)
    • toJsonStringWithoutPretty

      public static String toJsonStringWithoutPretty(Object target)
    • toJsonStringWithoutLog

      public static String toJsonStringWithoutLog(Object target)
    • readValue

      public static <T> T readValue(String json, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
    • readValue

      public static <T> T readValue(String json, Class<T> clazz)
    • readValue

      public static <T> T readValue(byte[] bytes, Class<T> clazz)
    • readValue

      public static <T> T readValue(byte[] bytes, com.fasterxml.jackson.databind.JavaType javaType)
    • toJsonBytes

      public static byte[] toJsonBytes(Object target)