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
    • Resolution: Fixed
    • Major
    • 3.2.1
    • None
    • 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

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

          Activity

            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