-
-
Save Jammink2/6fcf0ca97fc241d611f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment