json.courses @courses do |course|
  json.course_id course.id
  json.course_name course.name
  json.created_at course.created_at
end

json.stages @subject.stages do |stage|
  index = 1
  json.shixuns stage.shixuns do |shixun|
    if shixun.status == 2 && !@none_shixun_ids.include?(shixun.id)
      json.shixun_id shixun.id
      json.shixun_name "#{stage.position}-#{index} #{shixun.name}"
    end
    index += 1
  end
end