Created
April 30, 2014 09:50
-
-
Save azakordonets/aa054f32546ec24c01cc to your computer and use it in GitHub Desktop.
Converty yaml to json on Python
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
import yaml | |
import json | |
yml = "file_path" | |
data = yaml.load(open(yml,'r')) | |
json = json.dumps(data) | |
print(json) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment