If you look at the implementation, you'll see
case class JObject(obj: List[JField]) extends JValue {
type Values = Map[String, Any]
def values = Map() ++ obj.map(_.values.asInstanceOf[(String, Any)]) // FIXME compiler fails if cast is removed
}
So this should work:
record.values.asInstanceOf[Map[String, Any]]("foo")
You could also try
record.values.apply("foo")
Alexey Romanov
2010-10-01 21:10:41