title: How to append JSON built using JsonBuilder to other JSON using groovy?
body: <p>With reference to this question's solution :- <a href="https://stackoverflow.com/questions/48260525/can-we-create-json-using-jsonbuilder-for-the-following-json">Building JSON using JsonBuilder</a></p>
  
  <pre><code>def json = new groovy.json.JsonBuilder()
  json {
      isOut false
      baleRun {
        incData true
        appendCricket( [
        {
           min 10
           max 32      
          price "10000"
        }
       ])
     }
  }
  
  println json.toPrettyString()
  </code></pre>
  
  <p>Output:- </p>
  
  <pre><code>{
  "isOut": false,
  "baleRun": {
      "incData": true,
      "appendCricket": [
          {
              "min": 10,
              "max": 32,
              "price": "10000"
          }
         ]
      }
  }
  </code></pre>
  
  <p>Where outside curly bracket is not required (In my case)</p>
  
  <p>I have another JSON where I need to insert newly created JSON:-</p>
  
  <pre><code>def newJSON = '''{
      "count": 6,
      "max": "1",
      "bale": false,
      "cricketDetails": {
          "cricketCategory": [
              {
                  "ball": 16,
                  "swing": true,
                  "code": "2",
                  "umpireStatus": [
                      {
                          "code": "TYUR",
                          "avail": 0,
                          "position": 1,
                          "request": ""
                      },
                      {
                          "code": "TGRE",
                          "avail": 0,
                          "position": 2,
                          "request": ""
                      }
                  ],
                  "min": "0",
                  "extraCover": 12,
                  "price": "DNR",
                  "program": "1 Day"
              }
          ]
      },
      "fourRuns": 4,
      "sixRuns": 6
  }'''
  </code></pre>
  
  <p>I have tried below code to add JSON1 (which is created using JsonBuilder) to JSON2 (Where I need to insert) at particular position:-</p>
  
  <pre><code> newJson.cricketDetails.cricketCategory.getAt(0).json = json
  </code></pre>
  
  <p>Actual Output I needed:-</p>
  
  <pre><code>{
  "count": 6,
  "max": "1",
  "bale": false,
  "cricketDetails": {
      "cricketCategory": [{
          "ball": 16,
          "swing": true,
          "code": "2",
          "umpireStatus": [{
              "code": "TYUR",
              "avail": 0,
              "position": 1,
              "request": ""
          },
          {
              "code": "TGRE",
              "avail": 0,
              "position": 2,
              "request": ""
          }],
          "isOut": false,
          "baleRun": {
              "incData": true,
              "appendCricket": [{
                  "min": 10,
                  "max": 32,
                  "price": "10000"
              }]
          },
          "min": "0",
          "extraCover": 12,
          "price": "DNR",
          "program": "1 Day"
      }]
  },
  "fourRuns": 4,
  "sixRuns": 6
  }
  </code></pre>
  
  <p>How can I achieve this? Also, If I try above mentioned code, outer curly bracket is being added every time with "json" as KEY. You can see from my output, I do not need and key here.</p>