Jackson: is there a way to serialize POJOs directly to treemodel? May 12, 2023 by Tarik To answer my own question: JsonNode node = objectMapper.valueToTree(map);