json.status 0
json.message "success"
json.enroll_count @competition_users.count
json.upload_count @upload_count
json.competition_subs @competition_info.competition_subs

json.data do
  json.array! @competition_info.competition_zones.each do |d|
    row_cell = []
    row_cell << d.to_s
    if d.include?("其他地区")
      ##
    else
      @competition_info.competition_subs.each do |sub|
        row_cell << @competition_users.select { |u| sub == u.sub_competition.to_s && u.zone.to_s == d }.size
      end
    end
    json.array! row_cell
  end
end