-1
在java中,我用jackson和Gson註釋,Play中是否有類似的東西?它迫使我除了我的類來創建這樣的另一個對象:玩框架:如何序列化/反序列化從/到斯卡拉的JSON
implicit val payloadRead : Reads[payload] = (
(JsPath \ "act").read[String] and
(JsPath \ "sk").read[Int] and
(JsPath \ "uid").read[String] and
(JsPath \ "ft").read[String] and
(JsPath \ "lt").read[String] and
(JsPath \ "em").read[String] and
(JsPath \ "nts").read[String] and
(JsPath \ "ugr").read[Int]
) (payload.apply _)