jehiah / json2csv

command line tool to convert json to csv
MIT License
801 stars 94 forks source link

Error decoding JSON at Line 1 #33

Open coopdetat opened 7 years ago

coopdetat commented 7 years ago

Trying to test this and I am unable to get anything to output into my csv file through powershell.

I created a file with the JSON data from the README just copy/pasted (test2.json) and when running

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

it hangs and then gives the error "ERROR Decoding JSON at line 1: unexpected end of JSON input." I've attached the data as a text file for reference.

test2.txt

jehiah commented 7 years ago

@coopdetat What version are you running? (i.e. json2csv --version)

coopdetat commented 7 years ago

1.2.0

YuriyGavrilov commented 5 years ago

The same issue 2018/11/01 19:41:46 ERROR Decoding JSON at line 1: invalid character 'ï' looking for beginning of value. The difference is in output if you set up stdout - ok, if " > file.csv" - this error. same if set up -o file