Sha256: 18fe256832080c0e560fe63a7ba1cc932914c13925a1445e6fafcfc05add9a97

Contents?: true

Size: 274 Bytes

Versions: 23

Compression:

Stored size: 274 Bytes

Contents

#!/usr/bin/env ruby

require 'json'

headers = []

STDIN.each_line do |line|
  begin
    hash = JSON.parse(line)
    if hash.keys != headers
      puts ''
      puts hash.keys * "\t"
      headers = hash.keys
    end
    puts hash.values * "\t"
  rescue => error
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ix-cli-0.0.24 bin/ix-json-to-csv
ix-cli-0.0.23 bin/ix-json-to-csv
ix-cli-0.0.22 bin/ix-json-to-csv
ix-cli-0.0.21 bin/ix-json-to-csv
ix-cli-0.0.20 bin/ix-json-to-csv
ix-cli-0.0.19 bin/ix-json-to-csv
ix-cli-0.0.18 bin/ix-json-to-csv
ix-cli-0.0.17 bin/ix-json-to-csv
ix-cli-0.0.16 bin/ix-json-to-csv
ix-cli-0.0.15 bin/ix-json-to-csv
ix-cli-0.0.14 bin/ix-json-to-csv
ix-cli-0.0.13 bin/ix-json-to-csv
ix-cli-0.0.12 bin/ix-json-to-csv
ix-cli-0.0.11 bin/ix-json-to-csv
ix-cli-0.0.10 bin/ix-json-to-csv
ix-cli-0.0.9 bin/ix-json-to-csv
ix-cli-0.0.7 bin/ix-json-to-csv
ix-cli-0.0.6 bin/ix-json-to-csv
ix-cli-0.0.5 bin/ix-json-to-csv
ix-cli-0.0.4 bin/ix-json-to-csv