Closed rsukla-handy closed 8 years ago
@rsukla-handy A REST API can return an array rather than a dictionary (the use of 'dictionary' as the argument name here is a bit misleading). This is a little bit of magic to do lookup on that array by index.
In general though, the jsonpath_mini extractor is only for a minimal case where you need to do trivial validation without access to extra libraries. More complex validation should use the JSONSchema validator or JMESpath extractor (which does far more advanced querying). See the advanced.md docs for details.
I'm going to go ahead and close this one out, since I think that answers the question here, but would be happy to reopen it if you feel there's more to it.
Thanks, Sam
I was just wondering since REST API gives a json object where all the keys are always string so why do you need a
int
function inside thequery dictionary
. Please see the below function