Forum Discussion
SmartBear_Suppo
Alumni
13 years agoTry these:
def map = ['requestRegion':'WA', 'requestCity':'SEATTLE'] // etc
def fieldNames = ['requestRegion', 'requestCity'] // etc
// iterate over each item of the fieldNames list
fieldNames.each {
def value = map[it]
// do something with the value
println value
}
// you probably don't need the fieldNames list if they just represent the keys of the map
map.each { key, value ->
// do something with the value
println value
}
// seems like you have a URL encoded email, so just decode it
java.net.URLDecoder.decode('example%40email.com', 'UTF-8')