Class Jackson
java.lang.Object
io.confluent.kafka.schemaregistry.json.jackson.Jackson
A utility class for Jackson.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperCreates a newObjectMapper.static com.fasterxml.jackson.databind.ObjectMappernewObjectMapper(boolean sorted) Creates a newObjectMapper.static com.fasterxml.jackson.databind.ObjectMappernewObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory) Creates a newObjectMapperwith a customJsonFactory.
-
Method Details
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()Creates a newObjectMapper. -
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(boolean sorted) Creates a newObjectMapper.- Parameters:
sorted- whether to sort object properties
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory) Creates a newObjectMapperwith a customJsonFactory.- Parameters:
jsonFactory- instance ofJsonFactoryto use for the createdObjectMapperinstance.
-