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 :-)

/Jeppe

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

Reply via email to