I have to get data from a json file but the values that I need are the child of a greater value. (it's a bit hard to explain). Basically the file sooks like this:
{
"records": [
{
"id": "reck8UMt9Kd2C5o05",
"fields": {
"start_date": "2021-06-02T22:00:00.000Z",
"ei_ready": true,
"⚙️rw_ecpm": 12.5,
"adset_id": "60bf50a4321707001074c113",
"⚙️dyn_standard": 65,
"production_status": "Prozessiert",
"copy2": "Vom Samstag, 10. April, ab 18 Uhr, bis Donnerstag, 22. April 2021",
"copy1": "Fahrplanänderungen Brugg AG-Turgi-Baden."
},
"createdTime": "2021-06-04T07:17:08.000Z"
}
]
}
How can I get only the copy2 or copy1 value from this json file? I tried something like this but it does not work. It's like I have to look for a file in a folder that is in a folder:
copy1 = (ATdata["records"],{},{"fields"},["copy1"])
print("copy1")# and only copy1 not anything else
Thank you