Scala play json combinators for validating equality
问题 I'm using play 2.2.0 Reads for validating incoming request in my application. I'm trying to implement a very simple thing with json API. I have a json like this: { "field1": "some value", "field2": "some another value" } I already have Reads that checks for other stuff like minimal length case class SomeObject(field1: String, field2: String) implicit val someObjectReads = ( (__ \ "field1").read(minLength[String](3)) ~ (__ \ "field2").read(minLength[String](3)) )(SomeObject) I want to create a