Skip to content

tojsonl: Failed to infer field types #2290

Answered by jqnatividad
datatraveller1 asked this question in Q&A
Discussion options

You must be logged in to vote

First off, I'm glad you find it useful @datatraveller1 .

As to your problem, I'm afraid I cannot reproduce it...

$ qsv tojsonl file.csv -o file.jsonl
Enum list generated for field 'col1' (2 value/s)
Enum list generated for field 'col2' (2 value/s)
Enum list generated for field 'col3' (2 value/s)

$ echo file.jsonl
{"col1":"a","col2":"b","col3":"c"}
{"col1":"d","col2":"e","col3":"f"}

Also, the tojsonl qsv command produces JSONL, not JSON.

BTW, what version of qsv are you using? Can you run qsv --version?

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jqnatividad
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jqnatividad
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants