OVMS3/OVMS.V3/components/duktape/tools/yaml2json.py

4 lines
99 B
Python

import os, sys, json, yaml
if __name__ == '__main__':
print(json.dumps(yaml.load(sys.stdin)))