#!/usr/bin/env ruby require 'rubygems' require 'json' def tag(name, content) "<#{name}>#{content}#{name}>" end def row(name, array) array.map do |value| tag(name, value) end * ' ' end table_header = false puts ' ' STDIN.each_line do |line| begin object = JSON.parse(line) unless table_header puts '