How to construct json request using Varest in a foreach loop and add each result set to struct array?

I am trying to do this:

and when I try to print a “Hello” after each addition of the StudentProfile struct to the StudentProfileList struct array I only get one “hello” getting printed though the loop runs 2 times. Is it possible to loop the Json Request like this?
Here is where I call the event: GetTeachersStudentList in my StudentListUI widget

Another unanswered question, very good.