as a tcl developer starting with groovy, I am a little bit surprised about the list and map support in groovy. Maybe I am missing something here.
I am used to conver
If you don't want to use evaluate(), do instead:
def stringMap = "['a':2,'b':4]" stringMap = stringMap.replaceAll('\\[|\\]','') def newMap = [:] stringMap.tokenize(',').each { kvTuple = it.tokenize(':') newMap[kvTuple[0]] = kvTuple[1] } println newMap