title: Asserting Against Large Dynamic Response
body: <p>I have a very large response array I want to assert against, but without knowing the order.  I have a variable with the expected response values so I can do a single giant comparison, but I'm unable to load the entire response and compare it with the entire expected response variable at the same time.</p>
  
  <pre><code>* def obligationsQuery = Java.type("tests.account.sql.Obligations").getObligations(division, account)
      * def getObligations = db.readRows(obligationsQuery)
  
      Given path "account", "v1", "accounts", systemId, "obligations"
        And header api-key = gatewayKey
      When method GET
      Then status 200
        And match $.data != null
        And match $.data[*].transactionType contains any "&lt;transactionTypeResponse&gt;"
        And match $.data[*] contains only getObligations
  
      Examples:
        | description | transactionType | transactionTypeResponse |
        | Invoice     | 001             | invoice
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>get_obligations_collection.feature:49 - path: $.data[*][*], actual: [{"object1"}, {"object2"}, {"etc"}], expected: {"object1"}, reason: actual value does not contain expected
  </code></pre>
  
  <p>I've also tried:
  <code>And match each $.data[*] contains only getObligations</code>
  But then I get:</p>
  
  <pre><code>get_obligations_collection.feature:49 - path: $[0], actual: [{"object1"}, expected: [{"object1"}, {"object2"}, {"etc"}, reason: actual value is not list-like
  </code></pre>