title: json-path: Filter on child of an array within another array
body: <p>I have a JSONArray within a JSONArray, I want to apply JSONPath expression on this in such a way that i get JSONObject or JSONArray as a result when a condition is satsified on the inner JSONArray. </p>
  
  <p>Eg:</p>
  
  <pre><code>{
    "A": [
      {
        "B": [
          {
            "id": 1
          },
          {
            "id": 2
          },
          {
            "id": 3
          }
        ],
        "C": {
          "id": 10,
          "name": "PQR"
        },
        "id": 25,
        "name": "XYZ"
      },
      {
        "B": [
          {
            "id": 4
          },
          {
            "id": 5
          },
          {
            "id": 6
          }
        ],
        "C": {
          "id": 15,
          "name": "PQR"
        },
        "id": 20,
        "name": "XYZ"
      }
    ]
  }
  </code></pre>
  
  <p>if i want all elements of A where <code>C.id = 10</code>, I would use: <code>$.A[?(@.C.id == 10)]</code></p>
  
  <p>Now, What predicate is to be used to obtain all the objects within A, where <code>B.id = 1</code>? Note: B is an array of JSON objects.</p>