diff --git a/lib/batch/batch_secgen.rb b/lib/batch/batch_secgen.rb index 49bf34131..2124703be 100644 --- a/lib/batch/batch_secgen.rb +++ b/lib/batch/batch_secgen.rb @@ -2,6 +2,7 @@ require 'fileutils' require 'getoptlong' require 'open3' require 'pg' +require 'json' require_relative '../helpers/print.rb' require_relative '../helpers/constants.rb' @@ -266,7 +267,7 @@ def list(options) items = select_all(db_conn) end items.each do |row| - Print.info row + Print.info row.to_json end db_conn.finish