I am composing ObjectNode programmtically and I am filling it's fields with put(String propertyName...) methods. Now I want to add a subobject, which I already have in the form of Java object. How to do this?
I don't have put(String propertyName, Object value) method, so what to do?
I am able to create
JsonNode node = mapper.valueToTree(myObject);
but again I don't have put(String propertyName, JsonNode node) method.
How to accomplish?