title: jq error while parsing json file inside jenkins Shell
body: <p>I want to parse the value of the filepath from the json. while parsing it via jq and seeing issue with respect to  not defined at top level. Please find the json details and the error below:</p>
  
  <pre><code>"environment":{
               "stage":{
                         "testing":[
  {
   "tag":"1.0"
    "filepath":"C:/test/conf"
     "hostname":"test"
  }]}}
  
  **command Used in Execute shell:**
   jq -r ".'environment.stage.testing[].filePath' env.json
  
  **Error Faced**:
  jq: error: environments/0 is not defined at &lt;top-level&gt;, line 1:
  environment.stage.testing[].filePath
  jq: 1 compile error
  
  TIA
  </code></pre>