0.0
No commit activity in last 3 years
No release in over 3 years
This Ruby lib aims at converting JSON files composed of arrays of objects (all following the same schema) into CSV files where one line equals one object.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

JsonToCsv

Installation

Add this line to your application's Gemfile:

install the gem yourself running this command in your terminal:

$ gem install json_to_csv

Usage

From the console

$ irb
$ require 'json_to_csv'
$ JsonToCsv::Convert.new('your_json_file_path')

This will convert your JSON into a CSV file, generated right in the directory from which your calling the method.

From your ruby file

require 'json_to_csv'

JsonToCsv::Convert.new('your_json_file_path')

This will convert your JSON into a CSV file, generated right in the directory from which your calling the method.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/json_to_csv.

License

The gem is available as open source under the terms of the MIT License.