I got a map matrix that looks like this:
def matrix = [
field1:[role1:[state1:["f1r1s1",true],
state2:["f1r1s2",false]],
role2:[state1:["f1r2s1",true],
state2:["f1r2s2",false]]
],
field2:[role1:[state1:["f2r1s1",true],
state2:["f2r1s2",false]],
role2:[state1:["f2r2s1",true],
state2:["f1r2s2",false]]
]
]
I am trying to get all fields where role is “role1” and state is “state1”. Easy? Help pls.
works for this case, as you’ve only got a single level of unknown to search through.