HI,
I want to retrieve only the EmailAddress:"[email protected]"
listed in the response below.
Can you help me with my code below?
My code
var jsonData = pm.response.json();
pm.environment.set("Email", jsonData.Emails[1].EmailAddress);
[
{
"LIJ": "uuuuu480559",
"Addresses": null,
"Emails": [
{
"EmailID": 2546403,
"EmailAddress": "[email protected]"
}
]
},
{
"LIJ": "mmmm9-42c324c71bb0",
"Addresses": null,
"Emails": [
{
"EmailID": 2546403,
"IsDoNotEmail": true,
"IsLogin": true,
"EmailAddress": "[email protected]"
},
{
"EmailID": 950651,
"IsDoNotEmail": false,
"EmailAddress": "[email protected]"
}
]
}
]