Skip to content

Instantly share code, notes, and snippets.

@tsanghan
Forked from mboersma/json2yaml
Created December 14, 2021 10:18
Show Gist options
  • Save tsanghan/0fe005e4ddefff67cac107eb8b52612a to your computer and use it in GitHub Desktop.
Save tsanghan/0fe005e4ddefff67cac107eb8b52612a to your computer and use it in GitHub Desktop.
JSON to YAML one-liner
python3 -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment