json.data do json.array! @videos.each do |d| json.title d.title json.user_name @current_user&.real_name json.is_finished d.is_finished ? true : false json.total_duration d.total_duration.round(0) json.freq d['freq'] json.start_at d.start_at.to_s json.end_at d.end_at.to_s end end json.count @count