Class JacksonService

java.lang.Object
com.github.shoothzj.javatool.service.JacksonService

public class JacksonService extends Object
Author:
akka
  • Constructor Details

    • JacksonService

      public JacksonService()
  • Method Details

    • toJson

      public static String toJson(Object o)
    • toObject

      public static <T> T toObject(String json, Class<T> type)
    • toRefer

      public static <T> T toRefer(String json, com.fasterxml.jackson.core.type.TypeReference<T> reference)
    • toList

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

      public static com.fasterxml.jackson.databind.JsonNode toJsonNode(String json)
    • createObjectNode

      public static com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()
    • createArrayNode

      public static com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()