import yamlimport jsonf = open('config.yaml','rb')data = yaml.load(f)print(json.dumps(data,indent=4))
deivces_type: androiddevices: android: - ip: 10.10.10.10 name: yongbotester: name: liuchang