title: Amazon EventBridge: Match an object inside of an array
body: <p>I've stuck the problem with defining a rule for matching my events.
  Googled, tested.</p>
  <p>Let's say, we've the following event which contains the object <code>user</code> in the array <code>events</code>:</p>
  <pre><code>{
      &quot;version&quot;: &quot;0&quot;,
      &quot;...&quot;: &quot;...&quot;,
      &quot;detail&quot;: {
          &quot;events&quot;: [
              {
                  &quot;user&quot;: {
                      &quot;id&quot;: &quot;5efdee60b48e7c1836078290&quot;
                  }
              }
          ]
      }
  }
  </code></pre>
  <p>Is there any way to match the <code>user.id</code> in an EventBus rule?
  I've already tried to use the following rule which is not valid:</p>
  <pre><code>{
    &quot;detail&quot;: {
      &quot;events&quot;: [
        {
          &quot;user&quot;: {
            &quot;id&quot;: [
              &quot;5efdee60b48e7c1836078290&quot;
            ]
          }
        }
      ]
    }
  }
  </code></pre>
  <p>then,</p>
  <pre><code>{
    &quot;detail&quot;: {
      &quot;events[0]&quot;: {
        &quot;user&quot;: {
          &quot;id&quot;: [
            &quot;5efdee60b48e7c1836078290&quot;
          ]
        }
      }
    }
  }
  </code></pre>
  <p>also no effect.</p>
  <p>I don't want to give up, but I'm tired with it ;)</p>