Hi Michael, You should build a custom Unmarshaller. There are various ways to do that, you can completely roll your own or derive one from something existing (for example deriving from a built-in Json unmarshaller). For more details there are some examples in the docs: http://doc.akka.io/docs/akka/2.4.7/scala/http/common/unmarshalling.html#Custom_Unmarshallers
The Marshaller companion object for example has various helper methods to derive Unmarshallers for simple functions A => B or A => Future[B]: http://doc.akka.io/api/akka/2.4.7/#akka.http.scaladsl.unmarshalling.Unmarshaller$ -Endre On Mon, Jun 6, 2016 at 11:28 AM, Origin Jing <michael.origi...@gmail.com> wrote: > I have a Class that have one single filed which is a java HashMap. The > class looks like case class Myclass(val map: java.util.Map[String, > AnfRef]), And I want to handle instances of this class in my Akka-http > based web Service. I want to use the entity directive, but it requires an > implicit FromRequestUnmarshaller. My question is how can I create this > FromRequestUnmarShaller if uses json formats as the wire format. what If I > want to use protostuff as the wire format? > > Thank you in advance. > > Michael > > -- > >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.