Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1858

Add convenience method for getting raw JSON bytes from LookupInResult

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.1
    • None
    • None
    • 1

    Description

      To retrieve the raw JSON bytes of a lookupIn result item, you can write contentAs(index, byte[].class).

      We've seen users struggle to discover this, as in https://forums.couchbase.com/t/return-raw-json-string-from-lookupin/31196/3

      Add a `LookupInResult.contentAsBytes(index)` method that returns the raw JSON byte array.

      Suggested release note text:

      Added a convenience method `LookupInResult.contentAsBytes(int index)` to get the raw JSON bytes of a subdocument.

      Attachments

        Issue Links

          For Gerrit Dashboard: JCBC-1858
          # Subject Branch Project Status CR V

          Activity

            There are no comments yet on this issue.

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty