title: how to parse the json file and read the json elements in groovy
body: <p>Hi i am trying to parse the below json file.  I tried using jsonsluper and parsed the file. I executed below command.  Nothing works.</p>
  
  <pre><code>def test =newjsonslurper().parsetext(organist)
    test.resources.each{
    println it.resources.metadata. "guid"
    println it.resources.entity. "name"
  }
  </code></pre>
  
  <p>This is the json file format   </p>
  
  <pre><code>resources: [
    {
      "metadata" :{
      "guid":"cya"
       "url": "dummy.test"
    },
    "entity" :
      {
        "name": "system"
        "status": "active"
      }
    }
    {
      "metadata" :
         {
           "guid":"cya"
           "url": "dummy.test"
         },
       "entity" :
         {
           "name": "system"
           "status": "active"
         }
    }
  ]
  </code></pre>