def l = [ [ "last_updated": "20/4", "profile_id": "dwadawdaw123"], [ "last_updated": "18/4", "profile_id": "dwadawdaw123"], [ "last_updated": "19/4", "profile_id": "dwadawdaw333", "este": true], [ "last_updated": "18/4", "profile_id": "dwadawdaw333"] ] print(l.find({it. profile_id.toString().endsWith("333")}))