Play 2.3 implicit json conversion causes null pointer exception
问题 I'm trying to parse json into my case class DealFormMap case class DealFormMap(limit: Option[Int], filter: Option[DealFormFilterMap]) case class DealFormFilterMap(date: Option[String], code: Option[String]) implicit val dealFormMapReads: Reads[DealFormMap] = ( (JsPath \ "limit").readNullable[Int] and (JsPath \ "filter").readNullable[DealFormFilterMap] )(DealFormMap) implicit val dealFormFilterMapReads: Reads[DealFormFilterMap] = ( (JsPath \ "date").readNullable[String] and (JsPath \ "code")