Last active
September 19, 2019 20:58
-
-
Save farrellit/7f2365e857d7873b007a47f89e1946fc to your computer and use it in GitHub Desktop.
shell inline python invocation to transform yaml 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
python -c "import yaml, sys, json; print(json.dumps(yaml.safe_load(sys.stdin.read())))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment