json.main_category main_catrgory do |category|
  json.main_category_id 0
  json.main_category_name category.module_name
end
json.homework_category homework_category do |category|
  json.category_id category.id
  json.category_name category.name
end