On Tue, Oct 27, 2009 at 10:02 AM, GA wrote:
> Thanks David.
>
> It works with a little change.
>
> I cannot do parse(new String(req.body, "UTF-8")) directly, because the type
> of req.body is net.liftweb.util.Box[Array[Byte]]. So I did this:
>
> var message = ""
> for (i <- req.bo
Thanks David.
It works with a little change.
I cannot do parse(new String(req.body, "UTF-8")) directly, because the
type of req.body is net.liftweb.util.Box[Array[Byte]]. So I did this:
var message = ""
for (i <- req.body) {
message = new String(i, "UTF-8")
On Tue, Oct 27, 2009 at 9:05 AM, GA wrote:
>
> Hello guys,
>
> I have a small Lift API that has to receive JSON content. The content-
> type is specified as "application/json". The API method is written as
> follows:
>
> def jsonTest(req: Req): LiftResponse = {
>
> implicit val format