Skip to content

Instantly share code, notes, and snippets.

@kenthunt
Forked from mboersma/yaml2json
Last active June 20, 2018 22:23
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 kenthunt/e163eb6ddda8bb706b12bd00e25497ce to your computer and use it in GitHub Desktop.
Save kenthunt/e163eb6ddda8bb706b12bd00e25497ce to your computer and use it in GitHub Desktop.
YAML to JSON one-liner
python -c 'import sys, yaml, json; 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