I want to convert .json file into .csv file using ruby. Pleases help me to do this.
Also propose any tool to achieve this.
To actually write to file...
require 'csv' require 'json' CSV.open("your_csv.csv", "w") do |csv| #open new file for write JSON.parse(File.open("your_json.json").read).each do |hash| #open json to parse csv << hash.values #write value to file end end