The key is to not have three different custom JsonProtocols but just one, in which you put all your custom formats:
object MyJsonFormat extends DefaultJsonFormat {
implicit val tripFormat = jsonFormat(Trip, …)
implicit val notificationFormat = jsonFormat(Notification, …)
implicit val notificationPlanFormat = jsonFormat(NotificationPlan, "trip", "notification")
}
Cheers,
Mathias
---
mat...@spray.cc
http://www.spray.cc