[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 parameter, not a JValue.

 Glenn
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
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: 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 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 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 parameter, not a JValue.

  Glenn

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Surf the harmonics
--~--~-~--~~~---~--~~
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: 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 needs
   }
   JsRaw(Printer.compact(render(json))

 }

 JsonResponse(xmlToJson(xml))

 On Oct 6, 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 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 parameter, not a JValue.

   Glenn

  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Surf the harmonics
--~--~-~--~~~---~--~~
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: 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): 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 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 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 parameter, not a JValue.

Glenn

   --
   Lift, the simply functional web frameworkhttp://liftweb.net
   Beginning Scalahttp://www.apress.com/book/view/1430219890
   Follow me:http://twitter.com/dpp
   Surf the harmonics
--~--~-~--~~~---~--~~
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: 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 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 parameter, not a JValue.

 Glenn




 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 


--~--~-~--~~~---~--~~
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: 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 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 parameter, not a JValue.
 
  Glenn
 
 
 
 
  --
  Lift, the simply functional web framework http://liftweb.net
  Beginning Scala http://www.apress.com/book/view/1430219890
  Follow me: http://twitter.com/dpp
  Surf the harmonics
 
  
 

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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