Jackson: is there a way to serialize POJOs directly to treemodel?
I'm looking for a way to directly convert some POJO to a Jackson TreeModel . I know that a translation from POJO-to-JSON-String exists, and TreeModel-to-JSON-String is supported — hovewer I am looking for a POJO-to-TreeModel translation. Is there a way? The use-case is as follows: Server-side templating is done with the Java implementation of Mustache. This uses Jackson's TreeModel. After that, I need a slimmed-down version of the TreeModel on the client-side, so I want to be able to first filter the TreeModel, serialize that to JSON, then send it to the client-side for further processing.