I have an example array below:
{
"orders": [
{
"order_id": 1,
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="345558514c745558514c1a575b59">[email protected]</a>",
"city": "London"
},
{
"order_id": 2,
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c6873715c687371327f7371">[email protected]</a>",
"city": "Miami"
}
]
}
Along with a variable
var email = "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1662797b5662797b3875797b">[email protected]</a>"
.
I need to retrieve order_id and city from the array where email is equal to "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b0c4dfddf0c4dfdd9ed3dfdd">[email protected]</a>"
Do you have any suggestions on how to accomplish this?