I'm trying to create yaml file from a map with yamlBuilder but it's not in the right context that I need it to be.
For example: Map mymap = [1: "a, b, c ,d", 2: "y, d, x"]
The yamlfile that I want to look like:
-Content:
-1:
-a
-b
-c
-d
-2:
-y
-d
-x
How the syntax of creation the yaml file should be? I've tried:
def yamlFile = new YamlBuilder()
yamlFile{
myMap
}
but this is not the same design as I need it to be.
Thanks