How do I serialize Map[String, Any] with spray-json? I try
val data = Map("name" -> "John", "age" -> 42)
import spray.json._
import DefaultJsonProtocol._
data.toJson
It says Cannot find JsonWriter or JsonFormat type class for scala.collection.immutable.Map[String,Any]
.