I am trying to get all of the nodes of the config, and turn them into a string list.
would return a list of strings that only have “node” and “node-2”
Any help would be greatly appreciated.
I’d do it with something like this
ConfigurationNode cfg = loader.load();
List<String> keysInRoot = cfg.getNode("root").getChildrenMap() //all key -> value pairs in "root"
.keySet().stream() //get a stream over all keys
.map(Object::toString) //because the child map is Object -> Configuration Node
.collect(Collectors.toList()); //you could also collect to a set
Giving it a go now. Thanks for the response.