csv_to_json

Crates.iocsv_to_json
lib.rscsv_to_json
version1.0.2
sourcesrc
created_at2016-04-22 19:03:50.528167
updated_at2016-04-22 19:03:50.528167
descriptionA binary that converts a CSV file with a header line to its JSON representation.
homepagehttps://github.com/divyekapoor/csv_to_json
repositoryhttps://github.com/divyekapoor/csv_to_json
max_upload_size
id4820
size4,857
Divye Kapoor (divyekapoor)

documentation

https://github.com/divyekapoor/csv_to_json

README

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.

travis-ci build status

$ 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.

Commit count: 19

cargo fmt