json.course_groups @course_groups.each do |group| json.(group, :id, :course_members_count, :name) end json.none_group_member_count @course.none_group_count json.group_count @all_group_count