[英]Errror to parsing the data from Nested JSON format
Hello i'm quite newbie in python, really need a solution.你好,我是 python 的新手,真的需要一个解决方案。
So, i've got the JSON data from marketplace website that contains all review data.因此,我从包含所有评论数据的市场网站获得了 JSON 数据。 But i want to get "reviewCreateTime" data only.
但我只想获取“reviewCreateTime”数据。 I need to parse them.
我需要解析它们。
This is the JSON data Tree:这是 JSON 数据树:
this is my code:这是我的代码:
items = []
for item in obj:
items.append(item['reviewCreateTime'])
But, i still have an error message但是,我仍然有一条错误消息
Can anyone solve this case?任何人都可以解决这个问题吗?
can you try this你能试试这个吗
for item in obj["data"]["ProductReviewListQuery"]["list"]
items.append(item["reviewCreateTime"])
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.