Skip to content

Instantly share code, notes, and snippets.

@fronx
Created December 18, 2012 10:43
Show Gist options
  • Save fronx/4327023 to your computer and use it in GitHub Desktop.
Save fronx/4327023 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
require 'json'
STDIN.read.split("\n").each do |line|
data = JSON.parse(line)
puts JSON.pretty_generate(data)
# puts ARGV.map { |k| data[k] }.join(' ')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment