Created
February 16, 2017 14:46
-
-
Save lukaszkorecki/20e8e142ae6719db699a92bf6074e7b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' team.json > foo.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(found on SO)