write_json

in rspec_stats/rspec_query.rb [35:44]


  def write_json
    filename = filename(:json)
    return if csv.empty?

    with_time do
      json = JSON.generate(data: csv.map(&:fields))
      File.write(filename, json)
    end
  end