-
-
Save apeckham/94afea22eb4626b9ff31865a760be24d to your computer and use it in GitHub Desktop.
convert csv to json
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
ruby -rjson -rcsv -e 'print JSON.pretty_generate(CSV.new(STDIN, headers: true).map(&:to_h))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment