I have a simple POJO:
public class MyClass {
public String id;
public String name;
}
I want to serialize it to JSON equivalent to the format an AWS Lambda handler for DynamoDB events would get for en embedded document of DynamoDB type Map:
M: {
id= { S: "abc123", },
name= { S: "whatever", },
}
And even more imporantly, I want to deserialize it from the JSON my Lambda function receives for every insert. The only examples I can find are very simple ones. None of them includes dealing with DynamoDB Maps in events inside of a Lambda handler.
I wonder if I have to write a serializer by hand or if there's something in the SDK I haven't found yet.