python如何打开json文件_如何使用python打开json文件?

工程_请求数据.json公司名称:{

"appKey": "9c9fa7201e90d3d96718bc3f36ce4cfe1781f2e82f4e5792996623b3b474fee2c77699eb5354f2136063e1ff19c378f0f6dd984471a38ca5c393801bffb062d6",

"appId": "NMDPTRIAL_AutomotiveTesting_NCS61HTTP",

"uId": "Alexander",

"inCodec": "PCM_16_8K",

"outCodec": "PCM_16_8K",

"cmdName": "NVC_TTS_CMD",

"appName": "Python",

"appVersion": "1",

"language": "eng-GB",

"carrier": "carrier",

"deviceModel": "deviceModel",

"cmdDict": {

"tts_voice": "Serena",

"tts_language": "eng-GB",

"locale": "canada",

"application_name": "Testing Python Script",

"organization_id": "NUANCE",

"phone_OS": "4.0",

"phone_network": "wifi",

"audio_source": "SpeakerAndMicrophone",

"location": "47.4925, 19.0513",

"application_session_id": "1234567890",

"utterance_number": "5",

"ui_langugage": "en",

"phone_submodel": "nmPhone2,1",

"application_state_id": "45"

}

}

代码:

^{pr2}$

我正在从特定路径读取一个json文件,json文件如上图所示。有两个json文件,一个是英语和德语,但我正在尝试阅读,但它正在打印,因为[ERROR]无法打开请求数据文件。我打不开。有人能告诉我怎么做吗?在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值