title: Filtering out keys from a JavaScript object
body: <p>I have a JavaScript object in the below format</p>
  
  <pre><code>{
  "Node1": [
      {
      "Node2": "node2detail1",
      "Node3": "node3detail1",
      "Node4": [
          "node4detail1",
          ]
      },
      {
      "Node2": "node2detail2",
      "Node3": "node3detail2",
      "Node4": [
          "node4detail2",
          ]
      },
      {
      "Node2": "node2detail3",
      "Node3": "node3detail3",
      "Node4": [
          "node4detail3",
          ]
      }
  ]}
  </code></pre>
  
  <p>Is it possible to write an jsonpath expression which would result in a JavaScript object in the following format?
  The intention is to filter by keys.</p>
  
  <pre><code>{
  "Node1": [
      {
      "Node2": "node2detail1",
      "Node3": "node3detail1",
      },
      {
      "Node2": "node2detail2",
      "Node3": "node3detail2",
      },
      {
      "Node2": "node2detail3",
      "Node3": "node3detail3",
      }
  ]}
  </code></pre>