Multiple filters in JSONPath
<p>I am trying to extract data using JSONPath, and using multiple filters.</p>

<p>In the JSON below, some have 'program.seriesId', and some don't. I want to extract the first 'value' that has no 'program.seriesId'</p>

<p>When I put the JSONPath below in the JSON evaluator <a href="http://jsonpath.com/" rel="nofollow">http://jsonpath.com/</a>:</p>

<pre><code>$.data[?(@.program.seriesId)].value
</code></pre>

<p>I get 123 AND 345. However I only want the first 'value' of 123.</p>

<p>I've tried the following multiple filter JSONPaths, but all return no matches:</p>

<pre><code>$.data[?(@.program.seriesId)][0].value
$.data[?(@.program.seriesId) &amp;&amp; 0].value
$.data[?(@.program.seriesId) and 0].value
</code></pre>

<p>What is the JSONPath query to return the first 'value' , that has no 'program.seriesId'?</p>

<pre><code>{
    "data": [
    {
        "value": "123",
        "program": {
            "id": "011",
            "seriesId": "111"
        }
    },
    {
        "value": "234",
        "program": {
            "id": "022"
        }
    },
    {
        "value": "345",
        "program": {
            "id": "033",
            "seriesId": "333"
        }
    }]
}
</code></pre>