#!/usr/koeki/bin/ruby # -*- coding: utf-8 -*- require 'json' date={} ARGV.each do |file| json = open(file) hash = JSON.load(json) date.merge!(hash) end puts date.to_json