I am trying to parse the key "tags" from the below JSON.
data = [{
"12233":{
"title": "The Title",
"id": "12233",
"tags": ["tag1", "tag2", "tag3"],
},
"122223":{
"title": "The Title",
"id": "122223",
"tags": ["tag4", "tag5", "tag6"],
},
"122344":{
"title": "The Title",
"id": "122344",
"tags": ["tag7", "tag8", "tag9"],
}
}]
I have tried this so far,
data = data[0]
tags_list = []
for tags in data:
tags_list.append(tags["122344"])
print(tags_list)
But it only extracts the first object, I want the result to be like this,
tags_list = ["tag1", "tag2", "tag3", "tag4", "tag5", "tag6","tag7", "tag8", "tag9"]