//extract the first and last name of the user
String firstName = userObj.getFirstName();
String lastName = userObj.getLastName();
//use the UserFactory to create a new UserNameJson object
UserNameJson userName = UserFactory.createUserNameJson(firstName, lastName, dateJoined);
//put the UserNameJson object in the array
userNameJsonArray[counter] = userName;
//increment the counter