This is the code I am using:
(__ \ "fields").read(
(__ \ "key").readNullable[String] and
(__ \ "summary").readNullable[String] and
(__ \ "description").readNullable[String]
tupled
)
The complete error in this case is:
value and is not a member of play.api.libs.json.Reads[Option[String]]
It could also have been one of these in the error
play.api.libs.json.OFormat
play.api.libs.json.OWrites
The solution is to import functional syntax
import play.api.libs.functional.syntax._
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With