title: Convert JValue to JSON string
body: <p>I want to convert a jvalue to json string. Here is what my code look like:</p>
  
  <pre><code>import org.json4s._
  import org.json4s.JsonDSL._
  import org.json4s.native.JsonMethods._
  import org.json4s.DefaultFormats._
  
   object Json4sTest {
  
    def main(arg: Array[String]) {
      var json = parse("""{"name":"luca", "id": "1q2w3e4r5t", "age": 26, "inner": { "age": 27 }, "url":"http://    www.nosqlnocry.wordpress.com"}""")
   //   println(json)
  
      val a: List[Map[String, JValue]] = List(Map("inner/age" -&gt; 35, "age" -&gt; 27), Map("name" -&gt; "foo"))
      val r = jsonFieldUpdater(json, a)
      println(r)
  
          }
  
  
        def jsonFieldUpdater(json: JValue, list: List[Map[String, JValue]]): JValue =
      //
        }
      }
  </code></pre>
  
  <p>gets me the result as :</p>
  
  <pre><code>JObject(List((name,JString(foo)), (id,JString(1q2w3e4r5t)), (age,JInt(27)), (inner,JObject(List((age,JInt(35))))), (url,JString(http://    www.nosqlnocry.wordpress.com))))
  </code></pre>
  
  <p>I am looking for a Json String output as :</p>
  
  <pre><code>{"name":"luca", "id": "1q2w3e4r5t", "age": 27, "inner": { "age": 35 }, "url":"http://    www.nosqlnocry.wordpress.com"}
  </code></pre>