Skip to content

Instantly share code, notes, and snippets.

@mgla
Last active June 7, 2018 12:22
Show Gist options
  • Save mgla/1fab90fbef35eecc386149d0bd479b83 to your computer and use it in GitHub Desktop.
Save mgla/1fab90fbef35eecc386149d0bd479b83 to your computer and use it in GitHub Desktop.
json 2 yaml oneline
python -c 'import sys, yaml, json; yaml.safe_dump(json.load(sys.stdin), sys.stdout, default_flow_style=False)' < input.json > output.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment