title: Not able to parse & return boolean value using jsonpath
body: <p>I have a simple JSON(below). The content in the modified array element may vary. I need to have a fixed output whenever the modified element has at least one file name that starts with 'test/' and a different output if none of the file starts with 'test/'. I need to do that using JsonPath.</p>
  <p>So far all the expressions I have used (e.g. <em><strong><strong>$.commits[<em>].</em>[?(@ =~ /test.*?/i)]</strong></strong></em>) gives me the list of files if the expression is matched, I need to have a fixed value (<em><strong>true</strong></em> or <em><strong>false</strong></em>) not the modified[] element value, if any of the array element in the modified element starts with <em><strong>'test'</strong></em>.</p>
  <p>Any help will be much appreciated.</p>
  <pre><code>{&quot;commits&quot;:[{&quot;modified&quot;:[&quot;test/db/ecs-db.sql&quot;,&quot;test/infra/infra-settings.json&quot;,&quot;test1/code/code.java&quot;]}]}
  </code></pre>