Please note that we are currently adding more content to this new website, so it will have an unfinished look as content is added over the next few days and weeks. If some information you need is missing, please ask on the mailing list or Twitter.

import rapture._
import core._, io._, net._, uri._, json._, codec._

// Read a file into a string
import encodings.`UTF-8`
val src = uri"http://rapture.io/sample.json".slurp[Char]

// Parse it as Json
import jsonBackends.jackson._
val json = Json.parse(src)

// Auto-extract a `Vector` of group members into case class instances
case class Member(name: String, born: Int)
case class Group(groupName: String, members: Set[Member])
json.groups(0).as[Group]