json.teachers do json.array! @students.each do |student| json.id student.id json.name student.full_name json.student_id student.student_id json.school_name student.school_name json.enrollable !current_competition.member_multiple_limited? || !@enrolled_map.key?(student.id) end end