I am trying to call a webservice from my play server I am using upickle for serialisation/deserialisation . My problem I have a sealed trait as
sealed trait RequestContent {
}
case class CreateUserRequest (email: String, password: String,jsonBlob: Map[String, String], createBTCWallet: Boolean) extends RequestContent
And when I try using upickle.default.write
as
val userRequest = CreateUserRequest("email","pw",Map("name" -> "name", true))
write(userRequest)
it gives an extra key for $type
. Is there a way to get the data to post without type in upickle??