Guest User

Untitled

a guest
Sep 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. require 'csv'
  2. require 'json'
  3.  
  4. csv_string = CSV.generate do |csv|
  5. JSON.parse(File.open("filename.json").read).each do |hash|
  6. data = hash[1]
  7. theline = theline + " #{data},"
  8. end
  9. end
Add Comment
Please, Sign In to add comment