Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for i in $(find . -name '*.json');do python -c 'import sys,json,yaml;print(yaml.safe_dump(json.loads(sys.stdin.read()), default_flow_style=False))' < $i > ${i/json/yaml};done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment