SDK Should Have Capability to Deserialize DDB JSON
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 51
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
Contributor guide
Assessment
This issue has not been assessed yet.