Skip to content

Instantly share code, notes, and snippets.

@farrellit
Last active September 19, 2019 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farrellit/7f2365e857d7873b007a47f89e1946fc to your computer and use it in GitHub Desktop.
Save farrellit/7f2365e857d7873b007a47f89e1946fc to your computer and use it in GitHub Desktop.
shell inline python invocation to transform yaml to json
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