# Uses of Class
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder

Packages that use Jackson2ObjectMapperBuilder
Package
Description
org.springframework.http.converter.json
Provides HttpMessageConverter implementations for handling JSON.

## Uses of Jackson2ObjectMapperBuilder in org.springframework.http.converter.json

Methods in org.springframework.http.converter.json that return Jackson2ObjectMapperBuilder
Modifier and Type
Method
Description
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`annotationIntrospector(AnnotationIntrospector annotationIntrospector)`
Set an `AnnotationIntrospector` for both serialization and deserialization.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`annotationIntrospector(Function<AnnotationIntrospector,AnnotationIntrospector> pairingFunction)`
Alternative to `annotationIntrospector(AnnotationIntrospector)` that allows combining with rather than replacing the currently set introspector, for example, via `AnnotationIntrospector.pair(AnnotationIntrospector, AnnotationIntrospector)`.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`applicationContext(org.springframework.context.ApplicationContext applicationContext)`
Set the Spring `ApplicationContext` in order to autowire Jackson handlers (`JsonSerializer`, `JsonDeserializer`, `KeyDeserializer`, `TypeResolverBuilder` and `TypeIdResolver`).
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`autoDetectFields(boolean autoDetectFields)`
Shortcut for `MapperFeature.AUTO_DETECT_FIELDS` option.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`autoDetectGettersSetters(boolean autoDetectGettersSetters)`
Shortcut for `MapperFeature.AUTO_DETECT_SETTERS`/ `MapperFeature.AUTO_DETECT_GETTERS`/`MapperFeature.AUTO_DETECT_IS_GETTERS` options.
`static Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`cbor()`
Obtain a `Jackson2ObjectMapperBuilder` instance in order to build a CBOR data format `ObjectMapper` instance.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`createXmlMapper(boolean createXmlMapper)`
If set to `true`, an `XmlMapper` will be created using its default constructor.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`dateFormat(DateFormat dateFormat)`
Define the format for date/time with the given `DateFormat`.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`defaultTyping(TypeResolverBuilder<?> typeResolverBuilder)`
Specify a `TypeResolverBuilder` to use for Jackson's default typing.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`defaultUseWrapper(boolean defaultUseWrapper)`
Define if a wrapper will be used for indexed (List, array) properties or not by default (only applies to `XmlMapper`).
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`defaultViewInclusion(boolean defaultViewInclusion)`
Shortcut for `MapperFeature.DEFAULT_VIEW_INCLUSION` option.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`deserializerByType(Class<?> type, JsonDeserializer<?> deserializer)`
Configure a custom deserializer for the given type.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`deserializers(JsonDeserializer<?>... deserializers)`
Configure custom deserializers.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`deserializersByType(Map<Class<?>,JsonDeserializer<?>> deserializers)`
Configure custom deserializers for the given types.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`factory(JsonFactory factory)`
Define the `JsonFactory` to be used to create the `ObjectMapper` instance.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`failOnEmptyBeans(boolean failOnEmptyBeans)`
Shortcut for `SerializationFeature.FAIL_ON_EMPTY_BEANS` option.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`failOnUnknownProperties(boolean failOnUnknownProperties)`
Shortcut for `DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES` option.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`featuresToDisable(Object... featuresToDisable)`
Specify features to disable.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`featuresToEnable(Object... featuresToEnable)`
Specify features to enable.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`filters(FilterProvider filters)`
Set the global filters to use in order to support `@JsonFilter` annotated POJO.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`findModulesViaServiceLoader(boolean findModules)`
Set whether to let Jackson find available modules via the JDK ServiceLoader, based on META-INF metadata in the classpath.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`handlerInstantiator(HandlerInstantiator handlerInstantiator)`
Customize the construction of Jackson handlers (`JsonSerializer`, `JsonDeserializer`, `KeyDeserializer`, `TypeResolverBuilder` and `TypeIdResolver`).
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`indentOutput(boolean indentOutput)`
Shortcut for `SerializationFeature.INDENT_OUTPUT` option.
`static Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`json()`
Obtain a `Jackson2ObjectMapperBuilder` instance in order to build a regular JSON `ObjectMapper` instance.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`locale(String localeString)`
Override the default `Locale` to use for formatting.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`locale(Locale locale)`
Override the default `Locale` to use for formatting.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`mixIn(Class<?> target, Class<?> mixinSource)`
Add mix-in annotations to use for augmenting specified class or interface.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`mixIns(Map<Class<?>,Class<?>> mixIns)`
Add mix-in annotations to use for augmenting specified class or interface.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`moduleClassLoader(ClassLoader moduleClassLoader)`
Set the ClassLoader to use for loading Jackson extension modules.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`modules(Module... modules)`
Specify the modules to be registered with the `ObjectMapper`.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`modules(Consumer<List<Module>> consumer)`
Variant of `modules(Module...)` with a `Consumer` for full control over the underlying list of modules.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`modules(List<Module> modules)`
Variant of `modules(Module...)` with a `List`.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`modulesToInstall(Module... modules)`
Specify one or more modules to be registered with the `ObjectMapper`.
`final Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`modulesToInstall(Class<? extends Module>... modules)`
Specify one or more modules by class to be registered with the `ObjectMapper`.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`modulesToInstall(Consumer<List<Module>> consumer)`
Variant of `modulesToInstall(Module...)` with a `Consumer` for full control over the underlying list of modules.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`postConfigurer(Consumer<ObjectMapper> configurer)`
An option to apply additional customizations directly to the `ObjectMapper` instances at the end, after all other config properties of the builder have been applied.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`propertyNamingStrategy(PropertyNamingStrategy propertyNamingStrategy)`
Specify a `PropertyNamingStrategy` to configure the `ObjectMapper` with.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`serializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include inclusion)`
Set a custom inclusion strategy for serialization.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`serializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Value serializationInclusion)`
Set a custom inclusion strategy for serialization.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`serializerByType(Class<?> type, JsonSerializer<?> serializer)`
Configure a custom serializer for the given type.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`serializers(JsonSerializer<?>... serializers)`
Configure custom serializers.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`serializersByType(Map<Class<?>,JsonSerializer<?>> serializers)`
Configure custom serializers for the given types.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`simpleDateFormat(String format)`
Define the date/time format with a `SimpleDateFormat`.
`static Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`smile()`
Obtain a `Jackson2ObjectMapperBuilder` instance in order to build a Smile data format `ObjectMapper` instance.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`timeZone(String timeZoneString)`
Override the default `TimeZone` to use for formatting.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`timeZone(TimeZone timeZone)`
Override the default `TimeZone` to use for formatting.
`Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`visibility(com.fasterxml.jackson.annotation.PropertyAccessor accessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility visibility)`
Specify visibility to limit what kind of properties are auto-detected.
`static Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`xml()`
Obtain a `Jackson2ObjectMapperBuilder` instance in order to build an `XmlMapper` instance.
`static Jackson2ObjectMapperBuilder`
Jackson2ObjectMapperBuilder.`yaml()`
Obtain a `Jackson2ObjectMapperBuilder` instance in order to build a YAML data format `ObjectMapper` instance.