I am making a request to an endpoint and getting a json response in the following format.
r = requests.get(url)
print(r.json())
{"context":"product=fhvh, price=25,product=vfjvnf,price=37,product=fvfv,price=3.....}
I want to loop over them and get the count of the products that have a price point of more than 22.
How can i get that? I tried to loop over the json response initially but i don't believe that will work due to the format of the output. Is there a better solution? How can i convert the response to maybe a dict or tuple first? Can someone help me. Thank you.