title: I need to get the primitive data type from json path using in-definite path
body: <p>Given this document:</p>
  
  <pre><code>{
      "slide": [{
          "title": {
              "fontName": "Open Sans",
              "top": 188,
              "left": -22,
              "width": 597,
              "fontSize": 45,
              "valign": "bottom",
              "presetType": "Parallelogram",
              "fill": "#6bcad5",
              "halign": "left",
              "fontColor": "#f4dde6",
              "height": 192
          }
      }, {
          "picture": {
              "top": 25,
              "left": 54,
              "width": 1,
              "colorMode": "GRAYSCALE",
              "presetType": "Snip_Same_Side_Rect",
              "height": 1
          }
      }]
  }
  </code></pre>
  
  <p>The following code returns <code>[54]</code>:</p>
  
  <pre><code>JSONArray obj = ctx.read("$.slide[?(@.picture)].picture.left");
  </code></pre>
  
  <p>But I need a primitive type, still maintaining the indefinite path.</p>