Why does this parse into a JArray(List(..)) intead of a JArray(..) ?
-harryh
scala> parse(""" { "ids" : [1, 2] } """)
res5: net.liftweb.json.JsonAST.JValue = JObject(List(JField(ids,JArray
(List(JInt(1), JInt(2))))))
On Nov 19, 3:51 pm, Tim Nelson <[email protected]> wrote:
> Have you seen the readme file?
>
> http://github.com/dpp/liftweb/tree/master/lift-base/lift-json/
>
> On Thu, Nov 19, 2009 at 2:20 PM, harryh <[email protected]> wrote:
> > Is there a basic intro to lift-json floating around anywhere? I'm
> > having a bit of trouble getting started with a couple basic things.
> > For example if a have a JObject that corresponds to:
>
> > {
> > "foo" : {
> > "bar" : 999
> > }
> > }
>
> > How do I get the 999 (as an int) out of the JObject? I'm sure this is
> > simple, just a bit confused on the basics.
>
> > -harryh
>
> > --
>
> > 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]<liftweb%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=.
--
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=.