title: groovy.json.JsonSlurper parse JSON
body: <p>I'm trying to parse a JSON-File in my gradle task.</p>
  
  <p>CODE:</p>
  
  <pre><code>def jsonFile = "../files/json/myJSON.json"
  def list = new JsonSlurper().parseText(jsonFile)
  </code></pre>
  
  <p>JSON - FILE</p>
  
  <pre><code>{
     "prepare": {
         "installed": [],
         "uninstalled": []
     },
     "config": {
         "files": []
     }
  }
  </code></pre>
  
  <p>But the code gives me the following exception:</p>
  
  <pre><code>Lexing failed on line: 1, column: 1, while reading '.', no possible valid JSON value or punctuation could be recognized.
  </code></pre>
  
  <p>And I don't understand why, I also validated my JSON-File on <a href="http://jsonlint.com/" rel="nofollow">http://jsonlint.com/</a> and it says that it is a valid JSON!</p>