Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error decoding JSON at Line 1 #33

Open
coopdetat opened this issue Mar 31, 2017 · 3 comments
Open

Error decoding JSON at Line 1 #33

coopdetat opened this issue Mar 31, 2017 · 3 comments

Comments

@coopdetat
Copy link

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
Copy link
Owner

jehiah commented Apr 1, 2017

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

@coopdetat
Copy link
Author

1.2.0

@YuriyGavrilov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants