Harry, I think you're double-escaping the slash. This works:
scala> import net.liftweb.json._
scala> val s1 = "{ \"id\": \"America/New_York\" }"
s1: java.lang.String = { "id": "America/New_York" }

scala> JsonParser.parse(s1)
res0: net.liftweb.json.JsonAST.JValue = JObject(List(JField(id,JString
(America/New_York))))

Peter Robinett

On Nov 30, 2:16 pm, harryh <har...@gmail.com> wrote:
> scala> import net.liftweb.json._
> scala> val s2 = "{ \"id\": \"America\\/New_York\" }"
> s2: java.lang.String = { "id": "America\/New_York" }
>
> scala> JsonParser.parse(s2)
> res1: net.liftweb.json.JsonAST.JValue = JObject(List(JField(id,JString
> (America\New_York))))
>
> It should be America/New_York but for some reason getting a \ instead
> of a /
>
> -harryh

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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.


Reply via email to