I have a JSON file where I am parsing the data, below is what I have tried and did not workout.
response = requests.post('https://satest.com', headers=headers, data=data)
response1=response.json()
print(response1[0].evtName)
for value in response1:
if value['evtName'] = re.match(r'\b(\w*TY-AB12\w*)\b', "TY-AB12"): #I want to loop in json Exactly match the evtName with TY-AB12
print(response1[value]['evtName'])
Objective : to loop through the json and output all the value of evtName , evt and PG which has TY-AB12 associated in the evtname (TY-AB12 sample app2 url)
Can anyone help here on how to proceed here.