[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.
 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
-~--~~~~--~~--~--~---



[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 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
-~--~~~~--~~--~--~---