Hi, Totally agreed, this makes List extraction more robust. The change is in reviewboard now:
http://reviewboard.liftweb.net/r/127/ Cheers Joni On 25 marras, 20:42, harryh <har...@gmail.com> wrote: > consider: > > case class Foo(id: Int, bars: List[Bar]) > case class Bar(id: Int) > > val foo = json.extract[Foo] > > The following json will cause a problem: > > { > "id": 12 > > } > > This can be fixed by changing bars to an Option[List[Bar]]. Should > that really be necessary though? Can't bars just be an empty list if > there are none of them? > > -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.