showing results for - "scala play json read single field"
Francesca
08 Aug 2020
1implicit val cReads: Reads[Conf] =
2  (__ \ "dirConfSeq").read[ISeq[DirConf]].map(Conf)
3
4implicit val cWrites: Writes[Conf] =
5  (__ \ "dirConfSeq").write[ISeq[DirConf]].contramap(_.dirConfSeq)