BeakerX automatically displays Maps and Lists as Tables completely automatically in many circumstances.
["x" : 1, "y" : 2]
List list = new ArrayList();
list.add(["x" : 1, "y" : 2]);
list.add(["x" : 3, "y" : 4]);
list
Map[] map = new Map[2];
map[0] = ["x" : 1, "y" : 2]
map[1] = ["x" : 3, "y" : 4]
map
def listOfMap = []
1.upto(10){
listOfMap += ["test": it]
}
listOfMap
def myMap = [:]
def myList = []
myList << [1, 2, 3]
myList << [2, 3, 4]
myMap.put(1, myList)
myMap
def myMap = [:]
def myList = [num1:1, num2:2]
myMap.put(1, myList)
myMap