I am setting up an E2E test and chaining my request/responses. I am defining variables from each response and using them in the next call.
Its working up to a point, and then a problem surfaces when defining off the 2nd response.
If I def operationId, operationSubject, or operationStatus (e.g response.operationId), it works. If I store anything from the results (e.g response.results.0.personId) it throws this error Expected ; but found .0 response.results.0.personId
My response:
{ "operationId": "922459ecxxxxx", "operationSubject": "BATCH_ENROLLMENT", "operationStatus": "PROCESSED", "results": { "0": { "personId": "367a73b5xxxx", "status": "PRE_AUTH", "email": "mquinter+TEST.69387488@email.com", "loanNumber": null }, "1": { "personId": "56f060fd-e34xxxxxx", "status": "PRE_AUTH", "email": "mquintxxxx@email.com", "loanNumber": null } } }