Use Argonaut in Play framework with Reads and Writes
问题 I know how to do json parsing using play json library for play application. For example I have following code: class PersonController extends Controller { case class Person(age: Int, name: String) implicit val personReads = Json.reads[Person] implicit val personWrites = Json.writes[Person] def create = Action(parse.json) { implicit request => rs.body.validate[Person] match { case s: JsSuccess => ... case e: JsError => ... } } } How should I write the code like Reads and Writes using Argonaut