java.lang.Object
io.confluent.kafka.schemaregistry.json.jackson.Jackson

public class Jackson extends Object
A utility class for Jackson.
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    Creates a new ObjectMapper.
    static com.fasterxml.jackson.databind.ObjectMapper
    newObjectMapper(boolean sorted)
    Creates a new ObjectMapper.
    static com.fasterxml.jackson.databind.ObjectMapper
    newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory)
    Creates a new ObjectMapper with a custom JsonFactory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
      Creates a new ObjectMapper.
    • newObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(boolean sorted)
      Creates a new ObjectMapper.
      Parameters:
      sorted - whether to sort object properties
    • newObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory)
      Creates a new ObjectMapper with a custom JsonFactory.
      Parameters:
      jsonFactory - instance of JsonFactory to use for the created ObjectMapper instance.