I have json response showing 4 values (image showing 3) for this object companies[0].salesReps
How to verify postman test for total no of Sales employee and print their names on console.
x.companies[0].salesReps[0].name
x.companies[0].salesReps[1].name
x.companies[0].salesReps[2].name
Tried this saying undefined
emp = JSON.parse(responseBody(companies[0].salesReps));
var listcnt = emp.length;
console.log(listcnt)
Any thing missing :) Thanks
Not sure about the structure of your response body, but this should do it. Happy to adapt it, once you've posted your complete response body.