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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -