title: Using jsonpath to get parent node
body: <p>Using node JSONPath, how can I get the parent node name from child node value</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "store": {
      "book": [
        {
          "id":"1",
          "author": "Nigel Rees",
          "title": "Sayings of the Century",
          "price": 8.95
        },
        {
          "id":"2",
          "author": "Evelyn Waugh",
          "title": "Sword of Honour",
          "price": 12.99
        }
      ]
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I use this expression to identify the child node based on value, I want to use this child node to find the parent node</p>
  
  <pre><code>$.[?(@.id =="1")]
  </code></pre>