i’ve been searching for an answer but I’m hitting the wall on this one. I have a json array
let jsonData = xml2Json(pm.response.text());
This is a valid json Object, and I can work with it. Here’s the json itself (or a snippet)
{
“users”: {
“count”: “740”,
“pageNumber”: “1”,
“pageSize”: “500”,
“user”: [
{
“authType”: “1”,
“createDate”: “May 14, 2018 9:56:33 PM”
}
]
}
}
using the lodash function ._each, I should be able to access users.user[0].authType
For some reason it is coming back as undefined. The json has approximately 2,000 entries, so I’m trying to figure out should I just a traditional for loop and abandon ._each? or is there a way to include a generic variable for the index of ._each?
P.