-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathcsv-to-json.1
More file actions
34 lines (34 loc) · 1000 Bytes
/
csv-to-json.1
File metadata and controls
34 lines (34 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.TH CSV-TO-JSON 1 "June 4, 2013"
.SH NAME
.PP
csv-to-json - convert CSV to JSON
.SH SYNOPSIS
.PP
csv-to-json OPTIONS [CSV_FILE]
.SH DESCRIPTION
.PP
Read a CSV file from file specified on command line or standard input
and write the corresponding JSON to standard output.
.PP
Each row of the JSON output contains a serialized JSON object.
The values of the object come from the corresponding row of the CSV
file; the header is used for the keys.
The --header flag should be used if the CSV file does not have a header.
.SH OPTIONS
.PP
-d DELIMITER, --delimiter=DELIMITER : Used to read CSV files which use
DELIMITER to separate fields instead of a comma.
.PP
--header=NAME[,NAME...] : comma-separated list of column names
.PP
-q QUOTECHAR, --quotechar=QUOTECHAR : Used to read CSV files which use
QUOTECHAR to quote fields instead of double quotes.
.SH SEE ALSO
.PP
\f[C]tsv-to-json\f[] (1), \f[C]json-ruby\f[] (1)
.PP
http://www.ietf.org/rfc/rfc4180.txt
.PP
http://json.org
.SH AUTHORS
Clark Grubb.