json.type @dump.dump_type.constant.downcase
json.files do
  DumpFileType.all.each do |dft|
    json.set! dft.constant.downcase, @dump.dump_files.where(dump_file_type: dft).each do |df|
      json.dump_file dump_file_url(df)
      json.md5 df.md5
    end
  end
end
json.ids do
  json.delete_ids @dump.delete_ids
  json.update_ids @dump.update_ids
end

json.type @dump.dump_type.constant.downcase
json.generated_date @dump.generated_date
json.files do
  DumpFileType.all.each do |dft|
    json.set! dft.constant.downcase, @dump.dump_files.where(dump_file_type: dft).each do |df|
      json.dump_file dump_file_url(df)
      json.md5 df.md5
    end
  end
end
json.ids do
  json.delete_ids @dump.delete_ids
  json.update_ids @dump.update_ids
end

Include generated_date in the response
Include generated_date in the response
