Crates.io | csv_to_json |
lib.rs | csv_to_json |
version | 1.0.2 |
source | src |
created_at | 2016-04-22 19:03:50.528167 |
updated_at | 2016-04-22 19:03:50.528167 |
description | A binary that converts a CSV file with a header line to its JSON representation. |
homepage | https://github.com/divyekapoor/csv_to_json |
repository | https://github.com/divyekapoor/csv_to_json |
max_upload_size | |
id | 4820 |
size | 4,857 |
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"}]
$ ./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.