I have a Java object obj that has attributes obj.attr1, obj.attr2 etc. The attributes are possibly accessed through an extra level of
obj
obj.attr1
obj.attr2
Another way to user JacksonObjectMapper is the convertValue ex:
convertValue
ObjectMapper m = new ObjectMapper(); Map mappedObject = m..convertValue(myObject, new TypeReference>() {});