#!/usr/bin/env ruby
require 'csv'
require 'json'

# ruby load_demeter_country_names.rb > src/Data/country_names.json
# https://git-aws.internal.justin.tv/CPE-Ops/Demeter/blob/master/src/data/country_names.csv

obj = {}

CSV.parse(File.read('country_names.csv')).each do |row|
    obj[row[0]] = row[1]
end

puts JSON.pretty_generate(obj)
