Hello pfarrel,
In my case, hasOwnProperty doesn’t seem to work. It returns me false even though the property is there…
Anyway, I found a workaround using pm.response.text() and .includes()
Thank you
EDIT:
Actually it is working. I did a test with a property that was inside another property, hence the error.
“loginInformation”: {
“session”: “99456489” }
If I do hasOwnProperty(“loginInformation”), I’ve got true. However, if I do hasOwnProperty(“session”), I’ve got false