With my api I get an array in json form as
{
“suggestions”: [
{
“value”: “jacket dress”
},
{
“value”: “jacket”
},
{
“value”: “jacquard towel”
},
{
“value”: “jackets”
},
{
“value”: “jacquard”
}
]
}
I need to validate each value of “value:” with some expcted array of data. Being Postman newborn , how can this be achieved. Where can i define my actual data? and how? .
can i have this in pre request script, let jac=[{value:“jacket dress”},{value:“jacket”},{value:“jacquard towel”},{value:“jacquard”},{value:“jackets”}];. Im lost pls help.