Is it possible to have Jackson's ObjectMapper
unmarshall only from a specific node (and 'down') in a JSON tree?
The use case is an extensible document format. I want to walk the tree, and then publish the current path to an extensible set of plugins, to see if the user is using and plugins that know what to do with that part of the document.
I'd like for plugin authors to not have to deal with the low-level details of JsonNode
or the streaming API; instead, just be passed some context and a specific JsonNode
, and then be able to use the lovely and convenient ObjectMapper
to unmarshall an instance of their class, considering the node passed as the root of the tree.