title: How to combine Play JSON objects with parser-combinator JSONObjects?
body: <pre><code>import play.api.libs.json._
  import scala.util.parsing.json.{JSON, JSONArray, JSONObject}
  </code></pre>
  
  <p>I have following json array-</p>
  
  <pre><code> val groupNameList = Json.arr(
      Json.obj(
        "groupName" -&gt; "All",
        "maxSeverity" -&gt; allGroupSeverityCount,
        "hostCount" -&gt; (windowsCount + linuxCount + esxCount + networkCount + storageCount + awsLinuxCount + awsWindowsCount)),
      Json.obj(
        "groupName" -&gt; "Private",
        "maxSeverity" -&gt; privateGroupSeverityCount,
        "hostCount" -&gt; (windowsCount + linuxCount + esxCount + networkCount + storageCount)),
      Json.obj(
        "groupName" -&gt; "Public",
        "maxSeverity" -&gt; publicGroupSeverityCount,
        "hostCount" -&gt; (awsLinuxCount + awsWindowsCount))
     )
  </code></pre>
  
  <p>I want to append a following list of json objects to this array -</p>
  
  <pre><code>List({"groupName" : "group1", "maxSeverity" : 10, "hostCount" : 1, "members" : ["192.168.20.30", "192.168.20.31", "192.168.20.53", "192.168.20.50"]})
  </code></pre>
  
  <p>I want to merge list into array. </p>
  
  <p>How do I append given list to json array using scala???</p>