Scala play json: how to capture the whole JSON source?
I receive, in my client, a WSResponse, and use play's deserializeJson method to extract the data, specified by paths, e.g. implicit val lsmf: Format[MyData] = ( (__).formatNullable[JsValue] ~ (__ "id").format[Int] ~ (__ "name").format[String]) (MyData.apply, unlift(MyData.unapply)) The receiving class will look…