Package com.xebialabs.xlrelease.serialization.json.jackson

# Class CustomJsonMapper

java.lang.Object
com.xebialabs.xlrelease.serialization.json.jackson.CustomJsonMapper

public final class CustomJsonMapper extends Object
Provides a pre-configured `JsonMapper.Builder` with Jackson 2 compatible defaults.

Jackson 3 changed several defaults that break backward compatibility:

- `WRITE_DATES_AS_TIMESTAMPS` is now `false` (was `true`)
- `FAIL_ON_NULL_FOR_PRIMITIVES` is now `true` (was `false`)
- `ConstructorDetector` may pick parameterized constructors over no-arg

Use `builder()` instead of `JsonMapper.builder()` when creating standalone mappers outside of the Spring-managed ObjectMapper bean.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static tools.jackson.databind.json.JsonMapper.Builder`
  `builder()`
  Returns a `JsonMapper.Builder` pre-configured with Jackson 2 compatible defaults.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### builder

    public static tools.jackson.databind.json.JsonMapper.Builder builder()
    Returns a `JsonMapper.Builder` pre-configured with Jackson 2 compatible defaults.