Created
August 6, 2023 20:07
-
-
Save obfusk/b129922ac43c7d08879bb1607d755b02 to your computer and use it in GitHub Desktop.
yaml -> json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import json, sys | |
from ruamel.yaml import YAML | |
json.dump(YAML(typ="safe").load(sys.stdin), sys.stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment