You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to do the reverse of unsparsify when converting from CSV to JSON? Where there are missing values in for a column in the CSV file, I would like to omit the key completely from that record in the JSON output. For example, taking as input
I can get the desired result by using mlr --c2j cat and piping the result through jq 'map(with_entries(select(.value != "")))' but it would be nice to be able to do it all in miller.
The text was updated successfully, but these errors were encountered:
Is there any way to do the reverse of
unsparsify
when converting from CSV to JSON? Where there are missing values in for a column in the CSV file, I would like to omit the key completely from that record in the JSON output. For example, taking as inputthe output should be
I can get the desired result by using
mlr --c2j cat
and piping the result throughjq 'map(with_entries(select(.value != "")))'
but it would be nice to be able to do it all in miller.The text was updated successfully, but these errors were encountered: