Jackson: is there a way to serialize POJOs directly to treemodel? Jackson: is there a way to serialize POJOs directly to treemodel? json json

Jackson: is there a way to serialize POJOs directly to treemodel?


To answer my own question:

JsonNode node = objectMapper.valueToTree(map);