json.setting do
  json.name default_setting.name
  json.nav_logo_url default_setting.nav_logo_url&.[](1..-1)
  json.login_logo_url default_setting.login_logo_url&.[](1..-1)
  json.tab_logo_url default_setting.tab_logo_url.present? ? default_setting.tab_logo_url&.[](1..-1) : "favicon.ico"
  json.site_page_deploy_domain  @deploy_domain

  json.subject_banner_url default_setting.subject_banner_url&.[](1..-1)
  # json.course_banner_url default_setting.course_banner_url&.[](1..-1)
  json.competition_banner_url EduSetting.get("competition_banner_url").to_s
  json.competition_banner_href EduSetting.get("competition_banner_href").to_s
  # json.moop_cases_banner_url default_setting.moop_cases_banner_url&.[](1..-1)
  # json.oj_banner_url default_setting.oj_banner_url&.[](1..-1)

  json.navbar @navbar

  json.footer default_setting.footer

  json.main_site current_laboratory.main_site?
  json.new_course default_course_links
  json.is_local EduSetting.get("is_local") == "true"

  json.add do
    json.array! @add
  end

  json.sub_competitions do
    json.array! @sub_competitions
  end

  json.personal do
    json.array! @personal
  end

  json.common @common
  # json.third_party @third_party
  json.third_party_new @third_party_new

  # if @top_system_notification.present?
  #   json.system_notification do
  #     json.(@top_system_notification, :id, :subject, :sub_subject, :content)
  #     json.is_read @top_system_notification.read_member?(current_user&.id)
  #   end
  # else
  #   json.system_notification nil
  # end
end
