title: Converting to net.liftweb.json.JsonAST.JObject Lift in Scala
body: <p>I am trying to construct a JSON object from a list where key is "products" and value is List[Product] where Product is a case class.But I am getting error that says "type mismatch; found : (String, List[com.mycompnay.ws.client.Product]) required: net.liftweb.json.JObject (which expands to) net.liftweb.json.JsonAST.JObject".</p>
  
  <p>What I have done so far is as below:</p>
  
  <pre><code>val resultJson:JObject = "products" -&gt; resultList
        println(compact(render(resultJson)))
  </code></pre>