    # File lib/chef/handler/json_file.rb, line 34
          def report
            if exception
              Chef::Log.error("Creating JSON exception report")
            else
              Chef::Log.info("Creating JSON run report")
            end

            build_report_dir
            savetime = Time.now.strftime("%Y%m%d%H%M%S")
            File.open(File.join(config[:path], "chef-run-report-#{savetime}.json"), "w") do |file|
              file.puts Chef::JSONCompat.to_json_pretty(data)
            end
          end