polardbxengine/extra/duktape/duktape-2.3.0/tools/yaml2json.py

5 lines
99 B
Python

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