Skip to content

Expose the response string in ResourceResponse #124

Open

Description

Hi,

Currently there is no way to get the original response string for a ResourceResponse - there is only access to the already parsed JSON property bag.

I need to convert the response to custom class (protobuff in my case) and having to serialize using toString() is a waste since the SDK already has access to the JSON string.

It would be great if the SDK could expose this since DocumentServiceResponse already has a getReponseBodyAsString.

Activity

  1. christopheranderson commented on Oct 16, 2018

    @christopheranderson

    Good suggestion. We're planning on doing this in the next version of the SDK by offering stream support.

  2. doronrosenberg commented on Oct 17, 2018

    @doronrosenberg
    Author

    Great to hear! Is the serialization into the JSON object property bag lazy currently or is it automatically serialized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions