Aggregate 2 paths
Aggregate 2 paths
(Path \ "foo" \ "bar") .andThen(Path \ "baz") == (Path \ "foo" \ "bar" \ "baz")
Creates a Writes the serialize data to the desired output type using a provided format.
Creates a Writes the serialize data to the desired output type using a provided format. *
val w = (Path \ "date").write(date("yyyy-MM-dd"")) w.writes(new Date()) == Json.obj("date" -> "2013-10-3")
Creates a Writes the serialize data to the desired output type
Creates a Writes the serialize data to the desired output type
val contact = Contact("Julien", "Tournay") implicit def contactWrite = (Path \ "firstname").write[String, UrlFormEncoded] contactWrite.writes(contact) shouldBe Map("firstname" -> "Julien")