title: Groovy ConfigSlurper Configure Arrays
body: <p>I am trying to create a config that would look something like this:</p>
  
  <pre><code>nods = [
      nod {
          test = 1
      },
      nod {
          test = 2
      }
  ]
  </code></pre>
  
  <p>and then use configSlurper to read it but the "node" objects appear to be null after the read.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>final ConfigObject data = new ConfigSlurper().parse(new File("config.dat").toURI().toURL())
  println  data.nods
  </code></pre>
  
  <p>and the output:</p>
  
  <pre><code>[null, null]
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks!</p>