I\'ve got an application that stores some data in DynamoDB using Jackson to marshall my complex object into a JSON.
For example the object I\'m marshalling might lo
You can use ObjectMapper.convertValue(), either value by value or even for the whole list. But you need to know the type to convert to:
POJO pojo = mapper.convertValue(singleObject, POJO.class);
// or:
List pojos = mapper.convertValue(listOfObjects, new TypeReference>() { });
this is functionally same as if you did:
byte[] json = mapper.writeValueAsBytes(singleObject);
POJO pojo = mapper.readValue(json, POJO.class);
but avoids actual serialization of data as JSON, instead using an in-memory event sequence as the intermediate step.