title: Passing JSON value using jq command to a new JSON file
body: <p>I ran curl command and then parsed the value ("id").</p>
  
  <p>request: </p>
  
  <pre><code>curl "http://192.168.22.22/test/index/limit:1/page:1/sort:id/pag1.json" | jq -r '.[0].id'
  </code></pre>
  
  <p>curl response:</p>
  
  <pre><code>[
    {
      "id": "381",
      "org_id": "9",
      "date": "2018-10-10",
      "info": "THIS IS TEST",
      "uuid": "5bbd1b41bc",
      "published": 1,
      "an": "2",
      "attribute_count": "4",
      "orgc_id": "8",
      "timestamp": "1",
      "dEST": "0",
      "sharing": "0",
      "proposal": false,
      "locked": false,
      "level_id": "1",
      "publish_timestamp": "0",
      "disable_correlation": false,
      "extends_uuid": "",
      "Org": {
        "id": "5",
        "name": "test",
        "uuid": "5b9bc"
      },
      "Orgc": {
        "id": "1",
        "name": "test",
        "uuid": "5b9f93bdeac1b41bc"
      },
      "ETag": []
    }
  ]
  </code></pre>
  
  <p>jq response:</p>
  
  <pre><code>381
  </code></pre>
  
  <p>Now I'm trying to get the "id" number 381, and then to create a new JSON file on the disk when I place the "id" number in the right place. </p>
  
  <p>The new JSON file for example:</p>
  
  <pre><code>{
    "request": {
      "Event": {
        "id": "381",
        "task": "new"
      }
    }
  }
  </code></pre>