Jackson can parse YAML to a tree of JsonNode objec...
# announcements
n
Jackson can parse YAML to a tree of JsonNode objects.
😮 1
m
Cant find an example everywhere exact classes required =(
n
Call readTree on the ObjectMapper
it returns a JsonNode.
m
Copy code
String newString = "{\"nick\": \"cowtowncoder\"}";
    JsonNode newNode = mapper.readTree(newString);
 
    JsonNode rootNode = ExampleStructure.getExampleRoot();
    ((ObjectNode) rootNode).set("name", newNode);
This is what I found
but what is ExampleStructure
Thanks, I handle it)