Replace calls to readValueAsTree() to readValueAs(JsonNode.class)