For example, I have this Map value in Scala:
val m = Map(
\"name\" -> \"john doe\",
\"age\" -> 18,
\"hasChild\" -> true,
\"childs\" -
val mapper = new ObjectMapper()
mapper.writeValueAsString(Map("a" -> 1))
result> {"empty":false,"traversableAgain":true}
==============================
import com.fasterxml.jackson.module.scala.DefaultScalaModule
val mapper = new ObjectMapper()
mapper.registerModule(DefaultScalaModule)
mapper.writeValueAsString(Map("a" -> 1))
result> {"a":1}