diff --git a/libraries/reporters/json_file.rb b/libraries/reporters/json_file.rb index 5ce172a7..4339b382 100644 --- a/libraries/reporters/json_file.rb +++ b/libraries/reporters/json_file.rb @@ -16,7 +16,7 @@ def send_report(report) def write_to_file(report, path) json_file = File.new(path, 'w') - json_file.puts(report) + json_file.puts(JSON.generate(report)) json_file.close end end