marian/scripts/json2yaml.py
2016-05-01 16:07:54 +02:00

6 lines
145 B
Python

import sys
import json
import yaml
yaml.safe_dump(json.load(sys.stdin), sys.stdout,
default_flow_style=False, allow_unicode=True)