Created
January 22, 2015 10:25
-
-
Save tyrannasaurusbanks/3c28f72e6190e7fa1e8c to your computer and use it in GitHub Desktop.
Convert yaml to json
This file contains hidden or 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
cat kubernetes.yml \ | |
| ruby -ryaml -rjson -e 'print YAML.load(STDIN.read).to_json' \ | |
| tee kubernetes.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment