Hi Ajinkya,
The sample works copied verbatim from your mail. Additionally the example
sources you copied it from is part of our Akka build and does indeed also
compile.
Something must be wrong with your local environment, have you added the
akka-http-spray-experimental module as a dependency?
The following example at
http://doc.akka.io/docs/akka/2.4/scala/http/common/json-support.html gives
an error at line no. 43 and 44.
Error:(43, 41) type mismatch;
found : WebServer.Item
required: akka.http.scaladsl.marshalling.ToResponseMarshallable
case Some(item) =>