title: Groovy JsonSlurper and nested maps
body: <p>I have a method that returns fairly-nested JSON such as:</p>
  
  <pre><code>[[fizz: buzz, foos: [[count: 4, flim: flam], [count: 6, flim: flume]]]]
  </code></pre>
  
  <p>When I try to use <code>JsonSlurper</code> to slurp this JSON into a <code>def result</code> I am getting exceptions:</p>
  
  <pre><code>// json == “[[fizz: buzz, foos: [[count: 4, flim: flam], [count: 6, flim: flume]]]]"
  String json = getJSON()
  JsonSlurper slurper = new JsonSlurper()
  
  def result = slurper.parseText(json)
  </code></pre>
  
  <p>Produces an exception thrown when <code>parseText</code> executes:</p>
  
  <pre><code>Caught: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object
  </code></pre>
  
  <p>Any ideas what the fix is?</p>