Can anyone tell me how to write a test that will count how many objects I have nested in JSON in the response.
I don’t know the number, so “to.equal” is out of the question.
I would like Postman to return a number in the console.
PS.
I searched the forum, none of the answers worked.
Thanks!!!
This will return the number in the console logs, but I can’t see how you can craft an appropriate test for this unless you know what the expected number will be.