Skip to content

Instantly share code, notes, and snippets.

View Jammink2's full-sized avatar

John Hammink Jammink2

View GitHub Profile
require 'csv'
require 'json'
csv_string = CSV.generate do |csv|
JSON.parse(File.open("filename.json").read).each do |hash|
data = hash[1]
theline = theline + " #{data},"
end
end