title: JSON output with Groovy
body: <p>I have been experimenting with the groovy Jsonbuilder as you can see below trying to look at different ways to build JSON objects and arrays.  After things started to make sense, I tried expanding to what is shown below.  The question I have is, why does "content" show up in the json pretty string output?  I actually have another json object displaying this.class information in json string outputs.</p>
  
  <p>Any ideas?  I'm new to this, so it could definitely be an obvious one.</p>
  
  
  
  <pre><code>def tt = ["test", "test1"]
  def jjj = "jason"
  def js3 = new groovy.json.JsonBuilder()
  def js2 = new groovy.json.JsonBuilder(tt);
  js3 hello: "$jjj", "$jjj": tt
  def js4 = new groovy.json.JsonBuilder()
  def result = js4([sdn: js3, openflow: js2, type: 3])
  println js4.toPrettyString();
  </code></pre>
  
  <p>outputs:</p>
  
  
  
  <pre><code>{
      "sdn": {
          "content": {
              "hello": "jason",
              "jason": [
                  "test",
                  "test1"
              ]
          }
      },
      "openflow": {
          "content": [
              "test",
              "test1"
          ]
      },
      "type": 3
  }
  </code></pre>