Advertisement
mehmetakiftutuncu

Train of code

Jan 14th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.19 KB | None | 0 0
  1. (result \ "success" \ "data").as[JsArray].value.map(_.as[JsObject]).head.fields.map(_._2.as[JsObject]).map(_.fields.map(_._2.asOpt[Boolean])).flatten[Option[Boolean]].count(_.getOrElse(false))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement