-
-
Save Jammink2/6fcf0ca97fc241d611f3 to your computer and use it in GitHub Desktop.
Revisions
-
wrburgess created this gist
Mar 23, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ 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