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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -