I am using DynamoDB for storage. I need to store a Java object in one attribute within a table. I see two approaches:
- One to convert the object to JSON using Jackson on the client side, and then store the JSON string in the attribute.
- Another way is to use DynamoDB List/Map types to store my object.
What are the pros and cons of each (In terms of item size, flexibility in Dynamo DB queries)?