Skip to content

Instantly share code, notes, and snippets.

@wertlex
Created July 23, 2013 18:37
Show Gist options
  • Save wertlex/6064960 to your computer and use it in GitHub Desktop.
Save wertlex/6064960 to your computer and use it in GitHub Desktop.
case class Profile(id: Option[String], name: String, docs: Seq[Doc])
case class Doc(name: String, content: String)
implicit val docWrites = Json.writes[Doc]
implicit val profileWrites = Json.writes[Profile]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment