json.total_journals_count @total_journals_count
json.total_operate_journals_count @total_operate_journals_count
json.total_comment_journals_count @total_comment_journals_count
json.total_count @journals.total_count 
json.journals @journals do |journal|
  journal.associate_attachment_container
  json.partial! "api/pm/issues/journals/detail", journal: journal
end