pushed On Mon, Jul 13, 2009 at 8:17 AM, David Pollak <[email protected] > wrote:
> > > On Mon, Jul 13, 2009 at 7:18 AM, Jeppe Nejsum Madsen <[email protected]>wrote: > >> >> Jeppe Nejsum Madsen <[email protected]> writes: >> >> > Hi, >> > >> > Just figured out that while JsObj generates valid javascript >> > expressions, it doesn't generate valid JSON objects since it uses >> > single quotes instead of double quotes for strings. >> > >> > Is there another way in Lift to generate JSON? >> >> On a slightly related note it seems as if JSONParser also accepts input >> which is not really JSON: >> >> scala> JSONParser.parse("{'text':2}") >> res0: net.liftweb.util.Box[Any] = Full(Map(text -> 2.0)) >> scala> JSONParser.parse("{text:2}") >> res1: net.liftweb.util.Box[Any] = Full(Map(text -> 2.0)) >> >> JSON requires strings to be surrounded with quotation marks (") >> >> This leads me to believe that this is all intentional :-) > > > I fixed the problem many months ago. The fix broke some apps. I backed > out the fix. I'll un-back out the fix now. > > >> >> >> /Jeppe >> >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.com/book/view/1430219890 > Follow me: http://twitter.com/dpp > Git some: http://github.com/dpp > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
