{
// Looping through to add the relevant info to the return array
for(int i = 0; i < questionsList.size(); i++)
{
// Instantiating the object QuestionDetailsJson at location i
questionDetailsList[i] = new QuestionDetailsJson();
// Copying the values from the questions list to the Json return objects list
questionDetailsList[i].setCreateDate(questionsList.get(i).getCreateDate());
questionDetailsList[i].setGroupId(questionsList.get(i).getGroupId());
questionDetailsList[i].setId(questionsList.get(i).getId());
questionDetailsList[i].setQuestionText(questionsList.get(i).getQuestionText());