I want to find a specific key in a given map. If the key is found, I then want to get the value of that key from the map.
This is what I managed so far:
Groovy maps can be used with the property property, so you can just do:
def x = mymap.likes
If the key you are looking for (for example 'likes.key') contains a dot itself, then you can use the syntax:
'likes.key'
def x = mymap.'likes.key'