json.total_count @project_datasets.total_count
json.project_datasets @project_datasets.each do |dataset|
  json.(dataset, :id, :title, :description, :paper_content)
  json.project do 
    json.partial! "api/v1/projects/simple_detail", project: dataset.project
  end
  if dataset.license.present? 
    json.license do 
      json.(dataset.license, :name, :content)
    end
  else
    json.license nil 
  end
end