python3 -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin, Loader=yaml.FullLoader), sys.stdout, indent=4)' < input.yaml > output.json
Created
October 7, 2022 17:56
-
-
Save df-a/1ee03d8c22716de5c62984a2c8b9354a to your computer and use it in GitHub Desktop.
Convert yaml to json using python
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment