📜  scala play json 读取单个字段 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:38.908000             🧑  作者: Mango

代码示例1
implicit val cReads: Reads[Conf] =
  (__ \ "dirConfSeq").read[ISeq[DirConf]].map(Conf)

implicit val cWrites: Writes[Conf] =
  (__ \ "dirConfSeq").write[ISeq[DirConf]].contramap(_.dirConfSeq)