json.array! subjects do |subject|
  json.id subject.id
  json.excellent subject.excellent
  json.image_url url_to_avatar(subject)
  json.name subject.name
  json.tag_name subject.repertoire.try(:name)
  json.stages_count subject.stages_count
  json.shixuns_count subject.shixuns_count
  json.members_count subject.member_count
  json.allow_visit subject.status > 1 || User.current.manager_of_subject?(subject) || User.current.admin?
end