Reg: Looping through json Array in gattling

Hi ,

I am using Json compile , whose output is Jsonarray ([“12”,"13,“14”]). Now i need do loop through them and execute some set of actions and provide each content in array as input for each iteration. I tried for each but i could not figure out. Please let me know
Package is : net.minidev.json.JSONArray

val imageAreaId : JSONArray = JsonPath.compile("$…imageAreas[*].id").read(pageData)