Could you please demostrate how I can define json writer for my class in Scala and Play Framework 2.1-RC2 ?
The documentation is quite confusing (and will be significant obstacle for wider adoption of Scala/Play by web-developer community). For example not only it's unclear where exactly following code (taken from here) should be located
implicit val taskWrites = (
(__ \ "id").write[String] ~
(__ \ "label").write[Boolean] ~
)(unlift(Task.unapply))
but it's also not compilable if I put it inside object definition. Play gives me following error
not found: value __
Here is my Task.scala