    # File lib/chef/resource_reporter.rb, line 216
        def prepare_run_data
          run_data = {}
          run_data["action"] = "end"
          run_data["resources"] = updated_resources.map do |resource_record|
            resource_record.for_json
          end
          run_data["status"] = @status
          run_data["run_list"] = @node.run_list.to_json
          run_data["total_res_count"] = @total_res_count.to_s
          run_data["data"] = {}

          if exception
            exception_data = {}
            exception_data["class"] = exception.inspect
            exception_data["message"] = exception.message
            exception_data["backtrace"] = exception.backtrace.to_json
            exception_data["description"] =  @error_descriptions
            run_data["data"]["exception"] = exception_data
          end
          run_data
        end