Just use a JsonResponse instead of XmlRresponse.
See definition:
object JsonResponse extends HeaderStuff {
def apply(json: JsExp): LiftResponse = JsonResponse(json, headers,
cookies, 200)
}
and call it
JsonResponse(JsObj(..))
Br's,
Marius
On Jun 11, 8:25 pm, Makeable m...@makeable.co.uk wrote:
I have followed through the book and have been successful in creating
an XML API.
How would I go about utilizing a JSONResponse instead?
Kind Regards,
Matt
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---