render()
is imported from JsonMethods._
and it actually requires a JValue. You have imported an implicit map2jvalue
twice from those two imports import org.json4s.JsonDSL._
and import org.json4s.JsonDSL.WithDouble._
.
I suspect that the compiler didn‘t find the implicit due to the ambiguous imports, try to be more selective: the 3rd import seems redundant (the one with JsonDSL.WithDouble._
).
Sometimes you can run scalac with -Xlog-implicits to see why implicits are not used.