title: Joining a JSONArray adds double quotes to the string in groovy
body: <p>I have grails app that makes a REST call. If an error occurs, a JSON array containing the error messages is returned. I need to combine these strings into a single string. However, when I do so double quotes are added to the front and end of the string. I have written a simple test controller to illustrate the problem:</p>
  
  <pre><code>import net.sf.json.*
  class MyController {
  
      def test = {
  
          String msg = "'fred' is not a valid LDAP distinguished name."
          JSONArray messages = new JSONArray()
          messages.add(msg)
          def renderStr = messages.join('&lt;br/&gt;')
  
          render(renderStr)
      }
  }
  </code></pre>
  
  <p>The output looks like this:</p>
  
  <pre><code>"'fred' is not a valid LDAP distinguished name."
  </code></pre>