I have a java type:
class Type {
String jsonField;
Object anotherJsonField;
}
I can successfully decerialize this String value using jackson library via executing
com.fasterxml.jackson.databind.ObjectMapper.readValue(content, Type.class)()
{
"jsonField": "field",
"anotherField": {
"something": "value"
}
}
I know that anotherField Object (its actual type after decerialization is LinkedHashMap) in the Type object is pointing to another JSON structure in it (AnotherType type). Is there any way to transform this Object value into an object of type AnotherType (java.lang.Object[java.util.LinkedHashMap] -> AnotherType)?