java - Converting only the first level of object tree using Jackson ObjectMapper -


is possible make objectmapper convert actual object without converting rest of object tree recursively ?

so :

map<string,object> props = new objectmapper().convertvalue(obj, map.class); 

results in map of [field, value] values actual references instances of fields of obj instead of maps ?

there no such feature right jackson. can achieve custom serializer/deserializer pair share data , "protocol". but, why bother doing when easier (and lot faster) way have generic way go pojo map, using reflection.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -