
[英]How to filter a REST API row response by a value of the row with python?
[英]Rest Api- retrieving value out of response and running loop using python
团队,我正在点击 API(请求)以获取结果响应,其属性为页面。 如果页面有更多数据并继续遍历直到它变为假,则为真
我是 python 的新手,并且在尝试检索此 C 值时遇到挑战
如果我使用 json.dumps(resp) 并尝试访问属性页面。 依照指示
json_obj = json.dumps(data)
print(str(json_obj['moreResult']))
while json_obj['moreresult'] ==true
```
I am getting following error: "print(str(json_obj['moreResult']))
TypeError: string indices must be integers"
How to fix this.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.