Open paultopia opened 7 years ago
attempting to convert a json using the instructions on the readme, I get error: unknown option-k'`
error: unknown option
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.
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:
json2csv -k user.name,remote_ip -i input.json -o output.csv