[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread David Pollak
Please open a ticket for this. We need to get the rest of Lift playing well with Joni's excellent JSON library. On Tue, Oct 6, 2009 at 7:43 AM, glenn gl...@exmbly.com wrote: I want to pass the result of Xml.toJson to JsonResponse. How can I do that, when JsonResponse takes a JsExp as a

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread harryh
For now I am doing this. It's not so bad. def xmlToJson(xml: Elem): JsExp = { val json = Xml.toJson(xml) map { // some mappings specific to my json needs } JsRaw(Printer.compact(render(json)) } JsonResponse(xmlToJson(xml)) On Oct 6, 11:17 am, David Pollak

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
Sounds like it might work for me. What package and class is render found in. Glenn On Oct 6, 8:47 am, harryh har...@gmail.com wrote: For now I am doing this.  It's not so bad. def xmlToJson(xml: Elem): JsExp = {   val json = Xml.toJson(xml) map {     // some mappings specific to my json

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
Never mind, I found it. Glenn On Oct 6, 9:02 am, glenn gl...@exmbly.com wrote: Sounds like it might work for me. What package and class is render found in. Glenn On Oct 6, 8:47 am, harryh har...@gmail.com wrote: For now I am doing this.  It's not so bad. def xmlToJson(xml: Elem):

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread Naftoli Gugenheim
Which modules will be dependent on lift-json? On Tue, Oct 6, 2009 at 11:17 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Please open a ticket for this.  We need to get the rest of Lift playing well with Joni's excellent JSON library. On Tue, Oct 6, 2009 at 7:43 AM, glenn

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread David Pollak
On Tue, Oct 6, 2009 at 5:13 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Which modules will be dependent on lift-json? lift-webkit On Tue, Oct 6, 2009 at 11:17 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Please open a ticket for this. We need to get the rest of Lift