解析Python中的嵌套字典列表
我正在尝试解析这个 json 字符串,如下所示。我尝试了 pd.Dataframe(PayloadData['gsmRegistrationInfo'] 但出现此错误“列表索引必须是整数或切片,而不是 str”
[{'gsmRegistrationInfo': [{'timestamp': {'secondsSince20000101': 695570408},
'countryAndOperatorCode': 310410,
'cellNumber': 170003217,
'locationAreaCode': 35634,
'networkType': 4,
'registered': 1}]
i m trying to parse this json string that looks like this. i tried pd.Dataframe(PayloadData['gsmRegistrationInfo']
but i got this error "list indices must be integers or slices, not str"
[{'gsmRegistrationInfo': [{'timestamp': {'secondsSince20000101': 695570408},
'countryAndOperatorCode': 310410,
'cellNumber': 170003217,
'locationAreaCode': 35634,
'networkType': 4,
'registered': 1}]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)