if project.present?
  json.type project.project_type
  json.(project, 
    :description, :forked_count, :forked_from_project_id, :identifier, 
    :issues_count, :pull_requests_count, :invite_code, :website, :platform,
    :name, :open_devops, :praises_count, :is_public, :status, :watchers_count,
    :ignore_id, :license_id, :project_category_id, :project_language_id)
else 
  json.nil!
end