Answers for "csv writer convert csv to jsob"

0

jq to csv

jq -r '(.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv'
Posted by: Guest on August-19-2020
0

csv to json

python -c "import csv,json;print json.dumps(list(csv.reader(open('csv_file.csv'))))"
Posted by: Guest on August-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language