title: How to use JMESPath to filter array of object based on contains of value in subproperty arrary
body: <p>How use JMESPath to filter nodes that possess email receivers with exact email?
  I have JSON object:</p>
  <pre><code>   [     
       {
          &quot;test&quot;:1,
          &quot;emailReceivers&quot;: [
            {
              &quot;emailAddress&quot;: &quot;a1@abc.com&quot;,
            }
          ]
        },
        {
          &quot;test&quot;:2,
          &quot;emailReceivers&quot;: [
            {
              &quot;emailAddress&quot;: &quot;a2@abc.com&quot;,
            },
            {
              &quot;emailAddress&quot;: &quot;a3@abc.com&quot;,
            }
          ]
        }
      ]
  </code></pre>
  <p>I would like to get node after filtering by elememailReceivers that contains <code>a1@abc.com</code>:</p>
  <pre><code>     {
          &quot;test&quot;:1,
          &quot;emailReceivers&quot;: [
            {
              &quot;emailAddress&quot;: &quot;a1@abc.com&quot;,
            }
          ]
        }
  </code></pre>
  <p>I was trying to use documentation <a href="https://jmespath.org/" rel="nofollow noreferrer">https://jmespath.org/</a> and examples but I failed.</p>