Play Json serialize/deserialize mutual recursive
问题 How to serialize and deserialize these structures using Play Json combinators? final case class WriteGroupEntity(label: String, items: Map[String, WriteEntity]) final case class WriteEntity(label: String, propertyType: String, groups: Option[Map[String, WriteGroupEntity]]) 回答1: Two days are gone and I've finally found a solution. import play.api.libs.json._ import play.api.libs.functional.syntax._ final case class GroupEntity(label: String, items: Map[String, Entity]) final case class Entity