Forum Discussion
@swright array[1] , it will give you 2nd value. for your case it looks like-
[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[‘$’][1]
or
[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[1]
I had tried these before and I think that they should have worked but they didn’t.
The first one changed the values to 1 and 2 which isn’t what I want:
$[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[‘$’][1]
The second one failed with:
reason":
“‘1’ was not found while evaluating the sub-expression ‘$[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[1]’”
I also tried the following that failed:
$[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[‘$’].pop()
It failed with:
"String type does not have a method named: pop, found in: …sult[‘$’].pop().
Thanks,
Scott