title: Groovy JSON is missing quotes around strings
body: <p>(Groovy Version: 2.4.16 JVM: 11.0.8 Vendor: Debian OS: Linux)</p>
  <p>My bash shell script outputs a JSON string that looks like this (without the &quot;sout: &quot;):</p>
  <pre><code>sout: {&quot;vms&quot;:[&quot;Jenkins&quot;,&quot;UbuntuRunner&quot;]}
  </code></pre>
  <p>Which I use as input to this Groovy code:</p>
  <pre><code>    def sout = new StringBuilder()
      def serr = new StringBuilder()
  
      // translate JSON to List
      def soutJson = new JsonSlurper().parseText(sout.toString())
      log.append(&quot;sout: &quot; + sout + &quot;\n&quot;)
      log.append(&quot;serr: &quot; + serr + &quot;\n&quot;)
      log.append(&quot;soutJson: &quot; + soutJson + &quot;\n&quot;)
      
      def List myList = soutJson.vms
      log.append(&quot;myList: &quot; + myList + &quot;\n&quot;)
      log.append(&quot;myList[0]: &quot; + myList[0] + &quot;\n&quot;)
      log.append(&quot;myList[1]: &quot; + myList[1] + &quot;\n&quot;)
      log.append(&quot;myList.size(): &quot; + myList.size() + &quot;\n&quot;)
  </code></pre>
  <p>I expect the output to include quotation marks, like this:</p>
  <pre><code>soutJson: [&quot;vms&quot;:[&quot;Jenkins&quot;, &quot;UbuntuRunner&quot;]]
  myList: [&quot;Jenkins&quot;, &quot;UbuntuRunner&quot;]
  myList[0]: &quot;Jenkins&quot;
  myList[1]: &quot;UbuntuRunner&quot;
  myList.size(): 2
  </code></pre>
  <p>But what is <em>actually</em> output is missing the quotes:</p>
  <pre><code>soutJson: [vms:[Jenkins, UbuntuRunner]]
  myList: [Jenkins, UbuntuRunner]
  myList[0]: Jenkins
  myList[1]: UbuntuRunner
  myList.size(): 2
  </code></pre>
  <p>Every example I find of printing a List or elements of the List include quotes. I don't care if these are single or double quotes but the code that later takes myList as input won't work if there are no quotes. And it can't be a string, it must be a List.</p>
  <p>How do I retain the quotation marks?</p>