-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find JsonWriter or JsonFormat type class for scala.collection.immutable.Map[String,Object] #292
Comments
The 'problem' here is that The
You could immediately create a JSON object with: But I would probably recommend introducing a type for whatever your map represents:
|
import spray.json._
import spray.json.DefaultJsonProtocol._
val list = Map("k"->"f","n"->"r","d"->List("ffff"))
println(list.toJson)
compiler error: Cannot find JsonWriter or JsonFormat type class for scala.collection.immutable.Map[String,java.io.Serializable]
I used wrong?
The text was updated successfully, but these errors were encountered: