Skip to content

Instantly share code, notes, and snippets.

@jewzaam
Created March 27, 2020 13:23
Show Gist options
  • Save jewzaam/934fda99778de738381ba6255fce08f5 to your computer and use it in GitHub Desktop.
Save jewzaam/934fda99778de738381ba6255fce08f5 to your computer and use it in GitHub Desktop.
convert yaml to json
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