When validating JSON files by path, it would be good to check the size of an array or if an object is null or not based on JSON path. First one, size of array, can be implemented with .hasSize(int n) attribute from JsonPath. Second one, check whether an object is null, can be implemented within doesNotExists() method. For my scenario, I have a request that contains N elements and response that should contain <= N responses. I would like to check if response array is not null and if it contains X elements based on request count.