Created
August 9, 2018 22:01
-
-
Save jaytaylor/f11428514269101049a225f20aea802f to your computer and use it in GitHub Desktop.
Python one-liner to 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
python -c 'import json, sys, yaml ; y = yaml.safe_load(sys.stdin.read()) ; print(json.dumps(y))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment