title: Karate API framework - How can I check that a particular field value is not coming as duplicate under an array
body: <p>Using karate framework how can I make sure that below personId under the persons array should not be coming as a duplicate value</p>
  
  <p>If you see below response the id:1 record has duplicate personIds, hence my test should be failed in this case. Also the persons array is dynamic in nature, there could be some records which hold more than 4 personsIds too. </p>
  
  <p>So a common approach should be helpful. Please help. </p>
  
  <pre><code>    {
          "total": 10,
          "count": 10,
          "results": [
              {
                  "id": "1",
                  "source": {
                      "authors": {
                          "persons": [
                              {
                                  "personId": 11
                              },
                              {
                                  "personId": 11
                              }
                          ]
                      }
                }
            },
            {
                  "id": "2",
                  "source": {
                      "authors": {
                          "persons": [
                              {
                                  "personId": 11
                              },
                              {
                                  "personId": 15
                              }
                          ]
                      }
                }
            }
      ]
  }
  </code></pre>