Hi there Mathias,
The object I'm trying to convert to json looks like this:
import java.sql.{ Timestamp }
case class UserTask(
user_id: Long,
label: String,
created: Timestamp,
completed: Timestamp)
But when I add it to my json protocol object:
object MyJsonProtocol extends DefaultJsonProtocol {
implicit val jsonUserTask = jsonFormat4(UserTask)
}
I get an error:
could not find implicit value for evidence parameter of type com.dci.rest.MyJsonProtocol.JF[java.sql.Timestamp]
So I'm trying to find a generic solution, because I work with timestamps quite often. Up to now I have been avoiding the problem by passing time as strings or longs, but it's a pain in the neck.
Best regards,
Jacobus