Convert JSON file to YAML file using CLI
Traducció de l’original en anglès. Llegeix-lo en: CastellanoEnglish
Només una recepta sobre com obtenir un fitxer YAML quan en tens un de JSON.
python -c 'import sys, yaml, json; yaml.safe_dump(json.load(sys.stdin), sys.stdout, default_flow_style=False)' < file.json > file.yaml