Playframework Play Framework无法反序列化从Mongo读取的JSON
我们的应用程序使用Play、ReactiveMongo Scala驱动程序和Mongo DB。我们有这些组件的以下版本:Playframework Play Framework无法反序列化从Mongo读取的JSON,playframework,play-reactivemongo,Playframework,Play Reactivemongo,我们的应用程序使用Play、ReactiveMongo Scala驱动程序和Mongo DB。我们有这些组件的以下版本: com.typesafe.play%%播放json%2.5.18 com.typesafe.play%%play%2.5.18 com.typesafe.play%%播放ws%2.5.18 org.reactivemongo%%play2 reactivemongo%0.20.3-play25 org.reactivemongo%%reactivemongo播放json%0
- com.typesafe.play%%播放json%2.5.18
- com.typesafe.play%%play%2.5.18
- com.typesafe.play%%播放ws%2.5.18
- org.reactivemongo%%play2 reactivemongo%0.20.3-play25
- org.reactivemongo%%reactivemongo播放json%0.20.3-play25
- org.reactivemongo%reactivemongo-bson_2.11%0.20.3
- org.reactivemongo%%reactivemongo%0.20.3
case class Status(siteStatus: SiteStatus, timestamp: Long, timestampLocalDateTime: Option[LocalDateTime] = None, msg: Option[String] = None)
object Status {
implicit val format: OFormat[Status] = Json.format[Status]
}
当我们使用较旧版本的play reactiveMongo库时,解析此JSON从未遇到任何问题:
“org.reactivemongo”%%“播放2 reactivemongo”%%“0.12.4”
此错误仅在升级到“play2 reactivemongo”%“0.20.3-play25”后发生。有什么解决办法吗?请帮忙
谢谢。您解决过这个问题吗?这是我目前正在做的事情。