retrieves results of students in JSON format