So I have a Map in Scala like this:
val m = Map[String, String](
"a" -> "theA",
"b" -> "theB",
"c" -> "theC",
"d" -> "theD",
"e" -> "theE"
)
and I want to serialize this structure into a JSON string using lift-json.
Do any of you know how to do this?
How about this?
output:
EDIT:
For a
scala.collections.mutable.Map, you should convert it first to an immutable map:.toMap