I'm trying to iterate over p and select a url
p = {
"photos":[
{"alt_sizes":[{"url":"img1.png"}]},
{"alt_sizes":[{"url":"img2.png"}]}
]
}
What is the most efficient way to get "url"?
Edit: "photos" can have more than two values, and so I need to iterate