title: JSONPath filter not working on nested json that contains nested object instead of an array
body: <p>I'm looking for a way to filter this JSON and retrieve only the cost when fid &gt; 10</p>
  <p>Working example, the <code>parent</code> prop is an array:</p>
  <pre><code> [
      {
          &quot;id&quot;: 1,
          &quot;properties&quot;: {
              &quot;parent&quot;: [
                  {
                      &quot;fid&quot;: 10,
                      &quot;cost&quot;: 100
                  }
              ]
          }
      },
      {
          &quot;id&quot;: 2,
          &quot;properties&quot;: {
              &quot;parent&quot;: [
                  {
                      &quot;fid&quot;: 20,
                      &quot;cost&quot;: 200
                  }
              ]
          }
      },
      {
          &quot;id&quot;: 32,
          &quot;properties&quot;: {
              &quot;parent&quot;: [
                  {
                      &quot;fid&quot;: 30,
                      &quot;cost&quot;: 300
                  }
              ]
          }
      }
  ]
  </code></pre>
  <p>JSONPath = <code>$[*].properties.parent[?(@['fid']&gt;10)].cost</code></p>
  <pre><code>result = [
    200,
    300
  ]
  </code></pre>
  <p>Not working example, the <code>parent</code> prop is now an object:</p>
  <pre><code>[
      {
          &quot;id&quot;: 1,
          &quot;properties&quot;: {
              &quot;parent&quot;: {
                  &quot;fid&quot;: 10,
                  &quot;cost&quot;: 100
              }
          }
      },
      {
          &quot;id&quot;: 2,
          &quot;properties&quot;: {
              &quot;parent&quot;: {
                  &quot;fid&quot;: 20,
                  &quot;cost&quot;: 200
              }
          }
      },
      {
          &quot;id&quot;: 32,
          &quot;properties&quot;: {
              &quot;parent&quot;: {
                  &quot;fid&quot;: 30,
                  &quot;cost&quot;: 300
              }
          }
      }
  ]
  </code></pre>
  <p>JSONPath = <code>$[*].properties.parent[?(@['fid']&gt;10)].cost</code></p>
  <p>The result is <code>No match</code></p>