1 stable release
Uses old Rust 2015
1.0.2 | Apr 22, 2016 |
---|
#185 in #transform
3KB
79 lines
csv_to_json
Takes in a CSV file and transforms it to JSON. Each line of the CSV file gets it's own line in the JSON file.
$ cat input.csv
Name,Age,Country
Divye,7,USA
Divya,6,India
$ csv_to_json < input.csv
[{"Name": "Divye","Age": "7","Country": "USA"},
{"Name": "Divya","Age": "6","Country": "India"}]
Install
$ ./configure
$ make
$ sudo make install
for Debian and Debian-like systems (eg. Ubuntu). The only dependency is the Rust compiler. Compiled with Rust 1.7.
Dependencies
~1.5MB
~12K SLoC