Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the v2 equivalent of the com.amazonaws.services.dynamodbv2.document.Item.toJSON() fonctionality from the v1 sdk #1240

Closed
lestephane opened this issue May 2, 2019 · 2 comments
Labels
feature-request A feature should be added or improved.

Comments

@lestephane
Copy link

lestephane commented May 2, 2019

It used to be possible to call toJSON() on a dynamodb item with the v1 SDK.
I need some guidance on how this is to be achieved in the v2 SDK.

Searching for toJSON in the migration guide and the issues here did not yield any result.

Here is the method in question from the v1 SDK

package com.amazonaws.services.dynamodbv2.document;
...
public class Item {
...
    /**
     * Returns this item as a JSON string.  Note all binary data will become
     * base-64 encoded in the resultant string.
     */
    public String toJSON() {
        return Jackson.toJsonString(this.attributes);
    }
@dagnir
Copy link
Contributor

dagnir commented May 2, 2019

HI @lestephane, the Dynamo DB Document library is not yet available in V2. Work on the the library is currently in progress, and can be tracked here in #35 (#36 is the original Document-specific ticket but the work is being combined with #35). There is an early MVP preview available in the
dynamodb-enhanced branch but I don't believe this specific functionality is implemented there: https://github.com/aws/aws-sdk-java-v2/blob/dynamodb-enhanced/services-custom/dynamodb-enhanced/README.md

@dagnir dagnir added the feature-request A feature should be added or improved. label May 2, 2019
@dagnir dagnir mentioned this issue May 2, 2019
@millems
Copy link
Contributor

millems commented Jul 8, 2019

Tracking this as part of #35

@millems millems closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

3 participants