brsteele75
11 years agoNew Contributor
Assert a JSON array response is not empty
I'm new to the Ready! API (REST) tool and have no programming background. I'm having trouble asserting that an array that is returned is not empty.
I'm using a GET call to return a list. This list is static and based on fixture data. Currently I am using the "JSONPath Count" to assert a JSON node $[12] is present 1 time, but that feels dirty.
I'm wondering if there is a better way to simply assert that the array is not empty?