tojsonl: Failed to infer field types #2290
-
First of all, thank you very much to jqnatividad for the great tool! I want to convert CSV to JSON. e.g. file.csv with content:
However, with this (and any other) file I get: Expected output file.json:
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
First off, I'm glad you find it useful @datatraveller1 . As to your problem, I'm afraid I cannot reproduce it...
Also, the BTW, what version of qsv are you using? Can you run |
Beta Was this translation helpful? Give feedback.
-
can’t reproduce on
Am running |
Beta Was this translation helpful? Give feedback.
-
"Can you run |
Beta Was this translation helpful? Give feedback.
-
I successfully use the JSON to CSV conversion which works great: That's why I thought it would also be possible the other way round. |
Beta Was this translation helpful? Give feedback.
-
Hi @jqnatividad,
However, it does not work if there are spaces in the directory name, e.g. C:\test\qsv test
So this is an argument parsing issue, at least on MS Windows. Does it work on Linux? |
Beta Was this translation helpful? Give feedback.
-
To be more precise, I open the command prompt (or Powershell), change to the directory "
It doesn't work either if the directory name does not contain spaces but the file name:
If it works correctly, e.g. for the file |
Beta Was this translation helpful? Give feedback.
-
Great thank you very much, @jqnatividad |
Beta Was this translation helpful? Give feedback.
First off, I'm glad you find it useful @datatraveller1 .
As to your problem, I'm afraid I cannot reproduce it...
Also, the
tojsonl
qsv command produces JSONL, not JSON.BTW, what version of qsv are you using? Can you run
qsv --version
?