jehiah / json2csv

command line tool to convert json to csv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-k option not recognized

paultopia opened this issue · comments

attempting to convert a json using the instructions on the readme, I get error: unknown option-k'`

This occurs even when using the exact data and command written on the readme, i.e., input.json:

[
	{"user": {"name":"jehiah", "password": "root"}, "remote_ip": "127.0.0.1", "dt" : "[20/Aug/2010:01:12:44 -0400]"},
	{"user": {"name":"jeroenjanssens", "password": "123"}, "remote_ip": "192.168.0.1", "dt" : "[20/Aug/2010:01:12:44 -0400]"},
	{"user": {"name":"unknown", "password": ""}, "remote_ip": "76.216.210.0", "dt" : "[20/Aug/2010:01:12:45 -0400]"}
]

json2csv -k user.name,remote_ip -i input.json -o output.csv

error: unknown option `-k'

Aaah, I see. The help for the binary that go get produces reveals that what the readme has as -k should actually be -f.