[Lift] Re: JSON Rest API

2009-06-11 Thread Timothy Perrett
Matt, Can you provide your existing code then we can suggest the best route forward for you - generally speaking it should be a minimal change Cheers, Tim On Jun 11, 6:25 pm, Makeable m...@makeable.co.uk wrote: I have followed through the book and have been successful in creating an XML API.

[Lift] Re: JSON Rest API

2009-06-11 Thread marius d.
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