Class JacksonUtils


  • public final class JacksonUtils
    extends Object
    • Method Detail

      • fromJsonString

        public static <T> T fromJsonString​(String json,
                                           Class<T> clazz)
        Returns the deserialized object from the given json string and target class; or null if the given json string is null.
      • jsonNodeOf

        public static com.fasterxml.jackson.databind.JsonNode jsonNodeOf​(String json)
      • jsonGeneratorOf

        public static com.fasterxml.jackson.core.JsonGenerator jsonGeneratorOf​(Writer writer)
                                                                        throws IOException
        Throws:
        IOException