class RSpec::Core::Formatters::JsonFormatter

def stop(group_notification)

def stop(group_notification)
  @output_hash[:examples] = group_notification.notifications.map do |notification|
    format_example(notification.example).tap do |hash|
      e = notification.example.exception
      if e
        hash[:exception] = {
          :class => e.class.name,
          :message => e.message,
          :backtrace => notification.formatted_backtrace,
        }
      end
    end
  end
end