Details
-
Bug
-
Resolution: Unresolved
-
Test Blocker
-
None
Description
In the "Using Custom Jackson" section, it would be helpful to include a code snippet that shows how to configure the SDK to use a custom ObjectMapper / JsonMapper.
JsonMapper customMapper = JsonMapper.builder()
|
// add modules or customize other settings |
.build();
|
|
Cluster cluster = Cluster.connect(
|
connectionString,
|
ClusterOptions.clusterOptions(username, password)
|
.environment(env -> env
|
.jsonSerializer(JacksonJsonSerializer.create(customMapper))
|
)
|
);
|
Reporter: David Nault
E-mail: david.nault@couchbase.com