Re: [akka-user] [akka-http] An issue with spay-son and collections

2015-11-11 Thread ilya . sorokoumov
Konrad, Thanks for the reply! In fact I have the very same code separation: *object ApiJsonProtocol extends ApiJsonProtocoltrait ApiJsonProtocol extends SprayJsonSupport with DefaultJsonProtocol { implicit val feedFormat = jsonFormat2(Feed) // implicit val feedsWriter =

Re: [akka-user] [akka-http] An issue with spay-son and collections

2015-11-11 Thread Konrad Malawski
Usually one would do something like this: trait MyModelJsonProtocol extends DefaultJsonProtocol {   implicit val feedFormat = jsonFormat2(Feed) } object MyModelJsonProtocol extends MyModelJsonProtocol And use it like so: trait MyHelloWorldRoute extends MyModelJsonProtocol = {   val route =

[akka-user] [akka-http] An issue with spay-son and collections

2015-11-11 Thread ilya . sorokoumov
Hi Guys, I'm trying out Akka-http on a small pet project of mine(where I'm gonna use it to implement some REST API) and I've stumbled upon an interesting problem with implicits. So, long story short it appears that I need to add an implicit Json writer for each collection-entity pair that I