# File lib/rspec/core/formatters/json_formatter.rb, line 65 def close output.write @output_hash.to_json output.close if IO === output && output != $stdout end