Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11337

Add example for Using Custom Jackson

    XMLWordPrintable

Details

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard.smedley Richard Smedley
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty