json.top_data do json.passed_count @pass_count json.simple_count @simple_count json.medium_count @medium_count json.diff_count @diff_count end json.hacks_count @hacks_count json.hacks_list do json.array! @hacks do |hack| json.(hack,:identifier, :name , :hack_user_lastest_codes_count, :difficult, :passed_rate, :category, :open_or_not, :status) end end