Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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