Why are you mixing javadsl with scaladsl. Javadsl is clearly not intended for Scala users :-)
Just use https://github.com/hseeberger/akka-http-json which provides jackson as one of the impls. -- Konrad `ktoso` Malawski Akka <http://akka.io> @ Lightbend <http://lightbend.com> On 17 April 2017 at 12:12:43, Eugene Dzhurinsky ([email protected]) wrote: I have a very basic setup: import akka.http.javadsl.marshallers.jackson.Jackson._ import akka.http.scaladsl.marshalling.ToResponseMarshaller import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.unmarshalling._ /** * HTTP service definitions. */ object Http { val DocMarshaller = marshaller[MyDocument]() val DocUnMarshaller = unmarshaller(classOf[MyDocument]) implicit val um: FromRequestUnmarshaller[MyDocument] = ??? implicit val m: ToResponseMarshaller[MyDocument] = ??? trait Calculator { def prefix: String val calculate = ((path(prefix / "method" / "doc") & pathEnd) & post & entity(as[MyDocument])) { doc ⇒ complete(doc) } } } What is the best way to implement the marshaller/unmarshaller in terms of Jackson marshaller/unmarshaller, without reimplementing the entire Unmarshaller for the objects? Some combinators I'm not aware of? Thanks! -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
