boto3 icon indicating copy to clipboard operation
boto3 copied to clipboard

Unmarshall JSON Response from DynamoDB

Open bannostookaylo opened this issue 7 years ago • 11 comments

Is there a way with boto3 to unmarshall a json response from querying dyanmodb? I want to avoid having to import another module like https://pypi.org/project/dynamodb-json/

bannostookaylo avatar Jul 20 '18 20:07 bannostookaylo

While we do have an abstraction for this. This class is considered internal so there is a chance that it subjected to breaking changes in the future. Otherwise marking this as a feature request to publicly expose our DynamoDB marshallers/unmarshallers.

kyleknap avatar Aug 15 '18 22:08 kyleknap

Any updates on whether this functionality has been made public?

ssmusoke avatar Jun 22 '19 07:06 ssmusoke

Also very much interested in this functionality

ghost avatar Jul 22 '19 13:07 ghost

I'm interested in this feature too.

juan-yunis avatar Sep 03 '19 18:09 juan-yunis

+1

anand086 avatar Mar 18 '20 19:03 anand086

Interested this too

p2327 avatar Nov 30 '20 02:11 p2327

+1

KirylKovaliov avatar Dec 22 '21 16:12 KirylKovaliov

+1

I don't understand why this is taking so long to expose. After all the other language SDK's have this functionality exposed

manchuck avatar Mar 02 '22 20:03 manchuck

I actually came across this issue as well. I was never able to get the TypeDeserializer to work correctly. I ended up rewriting my logic to take advantage of the Table Resource in dynamodb. Only way I was able to get my API to return the results correctly. Idk if that helps or not. Just throwing it out there.

georgeoffley avatar Mar 20 '22 00:03 georgeoffley

TypeSerializer and TypeDeserializer are documented here: https://boto3.amazonaws.com/v1/documentation/api/latest/_modules/boto3/dynamodb/types.html

I think this example is what was requested but this comment mentioned earlier still stands:

This class is considered internal so there is a chance that it subjected to breaking changes in the future. Otherwise marking this as a feature request to publicly expose our DynamoDB marshallers/unmarshallers.

tim-finnigan avatar Apr 06 '22 17:04 tim-finnigan

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Apr 11 '22 18:04 github-actions[bot]