Update json_writer.rb