title: Read json from jenkins
body: <p>Im trying to read a json file from within a jenkinsfile with grovvy script. Im using the pipeline-utility-steps-plugin, which allows to read the json file as string with the following.</p>
  
  <pre><code>def projects = readJSON file: "${env.WORKSPACE}\\Projects.json"
  </code></pre>
  
  <p>after reading the doc, i was thinking i could get out with something like this, but i surely do something wrong because result is null? </p>
  
  <pre><code>projects.project[1].name
  </code></pre>
  
  <p>Now my problem is i cant seem to figure out how i get the <strong>name</strong> of number 2 out? Please help me out</p>
  
  <p>Content of the Projects.json</p>
  
  <pre><code>    {
    "projects": {
      "project": [
        {
          "name": "PackingStation",
          "solution": "PackingStation\\BLogic.Applications.PackingStation.sln",
          "analysisFiles": "BLogic.Applications.PackingStation.exe"
        },
        {
          "name": "MasterData",
          "solution": "MasterData\\BLogic.Applications.MasterData.sln",
          "analysisFiles": "BLogic.Applications.MasterData.exe"
        },
        {
          "name": "OrderManager",
          "solution": "OrderManager\\BLogic.Applications.OrderManager.sln",
          "analysisFiles": "BLogic.Applications.OrderManager.exe"
        }
      ]
    }
  }
  </code></pre>