Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / pj2y.sh
Created September 26, 2016 16:50
JSON to YAML converter.
#!/bin/sh
JFILE=$1
python -c 'import sys, yaml, json; yaml.safe_dump(json.load(sys.stdin), sys.stdout, default_flow_style=False)' < $JFILE
## usage
## $ py2j.sh my-cloudformation-template.json > my-cloudformation-template.yaml