-
Notifications
You must be signed in to change notification settings - Fork 932
Description
Describe the feature
DynamoDB exports a JSON format with type annotations. For example, normal JSON of {"key": "value"}
would actually look like {"key": {"S": "value"}}
. DDB SDK for Java or supporting libraries should provide tooling that makes it easy to deserialize this, especially for objects annotated with @DyanmodDbBean
.
Today, there is EnhancedDocument.fromJson(...)
but this takes in standard JSON without the DDB type annotations. There is no method provided that converts DDB JSON to normal JSON.
This means that any engineer trying to handle this case has to write a custom deserializer. I can implement code that parses a JSON Node and handles this - but this is such a standard operation I shouldn't have to.
Use Case
I should be able to deserialize wire format DDB JSON into my models without manually handling the removal / flattening of DDB type annotations.
Ideally, this also applies any converters that are attached to my @DynamoDbBean
annotated class.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
2.27.6
JDK version used
17
Operating System and version
MacOS Sequoia 15.5