Hello guys,

I have the following code working ok:

                         JsonResponse(JsObj("Op" -> 0,"e" -> 0,"id" ->  
newUser.id.toString))

The returned JSON message looks like the following:

{"Op": 5, "e": 0, "id":"123455"}

I would like the message to be like this:

{"Op": 5, "e": 0, "id": 123455}

  If I write the line like this:

                         JsonResponse(JsObj("Op" -> 0,"e" -> 0,"id" ->  
newUser.id)

I receive a compilation error saying:

  found   : Long
  required: net.liftweb.http.js.JsExp with net.liftweb.util.Bindable

How can I return the long value without converting it to string?

Thanks in advance,

GA


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to