Sha256: 2a8ea002f0e134686e0f56b65cca3ed412565c08731d1720f31275f6028276e9
Contents?: true
Size: 204 Bytes
Versions: 26
Compression:
Stored size: 204 Bytes
Contents
#!/usr/bin/env ruby require 'json' key = ARGV[0] value = ARGV[1] STDIN.each_line do |line| begin hash = JSON.parse(line) hash[key] = value puts hash.to_json rescue => error end end
Version data entries
26 entries across 26 versions & 1 rubygems